Skip to content

Instantly share code, notes, and snippets.

@nrctkno
Last active March 15, 2023 00:40
Show Gist options
  • Save nrctkno/80901fda03cf7e6d6c23d327620e3270 to your computer and use it in GitHub Desktop.
Save nrctkno/80901fda03cf7e6d6c23d327620e3270 to your computer and use it in GitHub Desktop.
1. Exception handlers
- Handle Exception hierarchy and translate into suitable HTTP response codes (or whatever the protocol is)
2. SRP
- One file per user story
- Fight against query hell
3. Materialize inputs and outputs (requests and responses)
3. Achieve a clear separation of config files
- External services
- Data stores
- Constants
4. Don't fall into common arch antipatterns
- database as an IPC
5. As much async as possible
- Get a clear notion about how a specific use case works/would work in a real life scenario
6. As much parallelization as possible
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment