I'm a senior engineer building apps in public.
I document the engineering patterns that actually work.
Follow me if you want: π
βοΈ Better backend skills
π€ Smarter AI powered development
ποΈ Scalable architecture habits
π Guidance for busy developers who want to ship
"It's one feature, so it should be one PR."
Actually, it's not really the case.
One feature can contain several independent engineering decisions.
- A database migration
- An API change
- A business rule
- A cleanup of obsolete code
A feature describes what users receive.
A PR describes what reviewers need to evaluate.
Those boundaries don't have to match.
Stop measuring architecture by how much you abstract.
Another requirement? Not necessarily another subclass.
Another class? Not necessarily another interface.
Favor composition over inheritance.
Create meaningful boundaries.
Good architecture doesn't maximize abstraction.
It minimizes the cost of change.
Not every decision belongs at runtime.
Types? Check them before shipping.
Static assets? Generate them before deployment.
Configuration? Load it at runtime.
Secrets? Inject them at runtime.
Permissions? Check them at the point of access.
Decide early when you can.
Decide late when you must.
Good architecture gets the timing right.
Do you want to think like a senior backend engineer?
Start by understanding what happens when connections run out.
- Borrow late.
- Release early.
- Keep transactions short.
- Watch waiting requests.
- Investigate before increasing pool size.
Connections are shared, they are not unlimited.
7 secrets management rules every senior developer should follow:
1. Never commit credentials.
2. Never share production passwords in chat.
3. Restrict permissions by default.
4. Separate environment credentials.
5. Prefer short-lived tokens.
6. Automate exposure detection.
7. Assign every secret an owner.
Security is built through repeated small decisions.
Do you want to think like a senior backend engineer?
Start by understanding what happens when connections run out.
- Reuse existing connections.
- Understand pool limits.
- Keep connection usage short.
- Prevent connection leaks.
- Configure sensible timeouts.
- Monitor waiting operations.
A fast query means nothing if it spends seconds waiting for a connection.
You have to learn to manage resources, not just write queries.
TTL looked simple on the whiteboard. Production had other plans.
A five-minute cache seemed reasonable.
Then prices went stale.
Cache entries expired together.
Database traffic spiked.
Sessions expired mid-checkout.
A few lessons:
- Base TTL on business rules.
- Add jitter to cache expiration.
- Coordinate cache refreshes.
- Separate expiration from deletion.
- Set absolute session lifetimes.
- Test expiry scenarios.
Setting a timer is easy.
Engineering starts when it expires.
You said "My code is thread-safe because all my tests pass."
You demonstrated that your code works under the conditions you tested.
The production is different.
Can two threads overwrite each other's changes?
Can a different execution order violate a business rule?
Can separate operations interfere?
Those are the questions worth answering.
Making authorization explicit takes effort.
Reviewing access rules takes effort.
Testing denied operations takes effort.
But explaining why one customer could access another customer's financial records takes far more effort.
Choose when to spend your engineering time.
Before the security incident or after it.
You don't need more consumers just because consumer lag is increasing.
You need to understand:
- Partition distribution
- Event processing time
- Downstream limits
- Rebalancing frequency
Adding workers is easy.
Architecture is knowing whether they will actually help.
5 reasons slow queries are often design problems:
- Data models determine query complexity.
- Access patterns determine useful indexes.
- Business requirements determine workload.
- Service boundaries determine network calls.
- Consistency requirements determine caching options.
Before tuning SQL, check first the architecture.
A faster query isn't always the best answer.