Skip to content
  • Blog
  • About
  • Contact

Mrbarnk

  • Blog
  • About
  • Contact

Backend Engineering

One chat message triggers dozens of queries. Change the read model.

October 27, 2026May 22, 2026 by Bankole Emmanuel
One conversation read model replaces scattered order, cart, customer and stock lookups.

Improve conversation database design with a bounded state row and an indexed context query. Inspect real SQLite query plans in the runnable example.

Categories Backend Engineering

The order was saved, but its queue job disappeared

October 27, 2026March 20, 2026 by Bankole Emmanuel
An order and outbox event commit in one database transaction before a relay publishes the event.

Build a transactional outbox Node.js example that saves orders and events together. Test rollback, relay replay and consumer deduplication with SQLite.

Categories Backend Engineering

Your API is slow, but CPU looks fine. Find where requests wait.

October 27, 2026January 29, 2026 by Bankole Emmanuel
A request trace shows a long database connection wait before a short query and response.

Use Node.js latency tracing to separate queue wait, database time and external calls. Build a local span recorder and plan production instrumentation.

Categories Backend Engineering

Every service is retrying. Stop one outage becoming five.

October 27, 2026September 19, 2025 by Bankole Emmanuel
An end-to-end deadline and retry budget limit retries across backend services.

Build a retry budget Node.js policy with deadlines, bounded attempts and jitter. Stop nested retries from multiplying load during dependency failures.

Categories Backend Engineering

Your queue made the API fast, but the customer waits longer

October 27, 2026August 27, 2025 by Bankole Emmanuel
A deadline-aware scheduler addresses customer wait behind a fast API acknowledgement.

Diagnose background job queue latency beyond fast API responses. Build deadline-aware scheduling and expose expired work with a Node.js simulation.

Categories Backend Engineering

A popular cache key expires and the database gets flooded

October 27, 2026August 1, 2025 by Bankole Emmanuel
Concurrent requests share one cache refresh instead of flooding the database.

Prevent a Node.js cache stampede with in-flight request sharing and explicit freshness rules. Test simultaneous misses without making distributed-lock claims.

Categories Backend Engineering
© 2026 Mrbarnk • Built with GeneratePress