← back

some tips for software product from my notebook

nov 2, 2026 · 2 min read · devops, software engineering, product

I have quick notes for you, i also use the same notes ^^

here is a quick roadmap to plan your backend architecture

first, ask these questions to yourself : 1 - what happens if the server dies? 2 - what happens when you need to scale?

some quick notes to design scalable and production ready softwares :

  • Isolate the database, run postgre in different and strong(?) server. because database is more important than client servers.
  • You can use multiple client servers (with nginx load balancer)
  • use cloudflare bot and ddos protection, its free.
  • use JWT to work with same user auths on different client servers
  • if you need file serving (for example if ur working on google drive like project) use cloud based services like S3 because they auto-scale etc. only keep the metadata of the files in your postgre, u dont need to over engineer.
  • as i said dont over engineer, you dont need micro-service structure if u dont work in millions of dollars software company. so use monolith structure, keep the structure and scaling plan simple.
  • rewrite your api services in rust, thank me later.
  • finish rate limiting and another security stuff.
  • caching and CDNs. u can use redis and cloudflare. redis for caching, cloudflare for free CDN service.
  • if one database starts to being not enough, then split the database like one for reading and another one is writing.
  • backup ur database. automate it, daily backups to S3 or somewhere safe. and please actually test restoring it once, dont just assume it works.
  • set up monitoring and health checks. u want to know ur server is down before ur users do. uptime robot is free, no excuse.
  • logs logs logs. log everything. all events, all user actions, all routings, all errors. when something breaks at 3am u will be so happy u did this. use something like grafana loki or even just structured json logs, doesnt matter, just log.
← all posts