Skip to content

04AR/go_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

63 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

just learning to use Go by building the websocket server

Go WebSocket Server with Redis + sqlite and postgres Backend

πŸš€ A lightweight and scalable WebSocket server written in Go that supports real-time synchronization between clients.
It uses:

  • Redis β†’ for state replication, broadcasting, and real-time pub/sub.
  • PostgreSQL or SQLite β†’ for persistent storage (user accounts, auth, metadata).
  • JWT authentication β†’ for secure client identification.

This setup is ideal for:

  • Any real-time service that requires persistence + fast sync ⚑

✨ Features

  • πŸ”Œ WebSocket-based communication (bidirectional, low latency).
  • πŸ—„οΈ Pluggable database layer β†’ choose between Postgres or SQLite.
  • πŸ“‘ Redis Pub/Sub β†’ ensures all clients across multiple servers stay in sync.
  • πŸ”’ JWT-based authentication β†’ secure and stateless.
  • πŸ› οΈ Thin abstraction layer β†’ easy to extend with custom game/app logic.
  • ⚑ Goroutine-based concurrency β†’ scales well with thousands of connections.

About

learning to make websocket go servers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published