Frantz Kati
5.7K posts

Frantz Kati
@bahdcoder
Always trying new things



Super hard getting into tech right now. But the key principle applies. Master your shit. Deeply care about the fundamentals to a crazy level. If you cannot review AI code and give meaningful feedback, go back to mastering the craft. I'm back to reading stuff everyday too.




Maintenance burden of having a mongoose schema is nowhere near the pain of managing versioned migrations in an SQL database. Not even close. If you want an easy life just use MongoDB. Your project is probably never grow to the point where it even matters.

Case Study: Your API suddenly starts receiving 40k requests per minute from a single IP trying random login attempts against user accounts. Question: How would you protect the authentication system without affecting legitimate users?

yes. where I work, we run 8 mssql shards because we store up to 20 entries per search and handle over 150k searches daily. we use shard keys to identify the appropriate server and route reads and writes accordingly. the routing is handled at the application layer.



People who love MongoDB either love it because it's the first database you're introduced to, or you're just running away from the cost of defining schemas. The irony is that while MongoDB may reward you with "schemaless" benefits when setting up, you still go ahead to define schemas in your code with Mongoose.. 🤔

you got 3 job offers one from Amazon one from the place you really want to work at one from the noname company paying you $470k base which one you pick?



I once worked with a senior backend engineer who believed that the strongest backend systems were the ones where logic is written more on the database layer than on the code layer. The normal if-else statement you would write to check a users balance, bro writes all that logic directly on the DB, there were triggers, database functions etc. Bro was literally coding with SQL. At that point I didn’t know SQL could even do all that. Bro would review my code then and ask me why was I writing all that logic in code when it could reside directly on the db😂. This was way before AI and bro would prefer to write every single thing by hand rather than install a package, he felt they were not secure. Bro uses a framework just to repurpose it and customize everything! At The point working with bro, he was almost 40. Man! I’ve worked with cracked devs, and I’m grateful for every experience that has shaped me.











@muyiwa_dev @spacetime_db I brought the docs here for you in case it was too far 🙏








