Skip to content

ecol-master/music_library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Music Library API

Stack: Golang + Postgres + Docker + Swagger

How to run

Configuration:

Run locally:

go run cmd/main.go --config=config/dev.yml

Run in Docker:

docker compose up --build

How Pagination Works

This project uses cursor pagination. Compared to indexed pagination, this method is faster, reduces database load, and decreases response time.

The OFFSET instruction is costly because, in a large database, it requires iterating through many records, increasing response time. This is mitigated by using ORDER BY id > cursor_id.

About

API for online music library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published