You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A simple Go backend demonstrating REST API (Gin), JWT Auth, Postgres, and a Worker Queue.
Architecture
Client
│
├─ POST /register → Create account
├─ POST /login → Get JWT token
│
└─ [JWT Protected]
├─ POST /api/tasks → Create task → pushed to Worker Queue
├─ GET /api/tasks → List my tasks
└─ GET /api/tasks/:id → Get task status/result
│
┌─────┴─────┐
│ Worker Pool │ (3 goroutines)
│ picks up │
│ tasks from │
│ channel │
└─────────────┘
│
Updates DB with result