Skip to content

Instantly share code, notes, and snippets.

@maurorappa
Created October 9, 2024 07:00
Show Gist options
  • Save maurorappa/9310a47ce34d47d9daa88d57e28c9108 to your computer and use it in GitHub Desktop.
Save maurorappa/9310a47ce34d47d9daa88d57e28c9108 to your computer and use it in GitHub Desktop.
Good architecture tips
microservices in containers without overengineering
all communications by BUS (easy to monitor everything, easy to add new sites, easy to test, easy to implement business logic )
all messages in json with schema (allows easy parsing/storage/replay and multiple service versions to coexists)
central db and Redis NOT in the cluster (shared storage as single point of truth, no cache sync problem)
api routing with nginx or openresty (http routing inside the gateway, no application gw)
services announce themselves on boot (easy to monitor, you can have a whole environment startup strategy )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment