PRABHAT KASHYAP’S ENGINEERING NOTES
Engineering deep dives.
Browse by topic.
Series and guides
AI Engineering Series
RAG pipelines, agents, LLMs, and production AI systems for backend engineers.
Python for Backend Developers
Start with Basic of Python, then explore references, object lifetime, and CPython optimizations.
Cats, Cats Effect & fs2 Series
Functional Scala, type classes, effectful programs, resource safety, and streams.
Kafka in Practice
Messaging choices, reliable event delivery, and practical event-driven systems.
- Best Practices
- GenAI
- General
- Java
- Python
- QuickFix/J
- Rust
- Scala
- Talk
- Uncategorized
- Back
- Claude Code
- Back
- Rust Series
- Back
- Spring Boot

Inspect CPython's reuse and optimization mechanisms without making application correctness depend on cached identities or particular bytecode.

Trace what keeps Python objects alive, observe cycle reclamation, and distinguish object cleanup from process memory and resource lifetimes.

Understand how Python names refer to objects, how mutation differs from reassignment, and where shared references need an explicit copying...

Learn Python's object model, syntax, functions, loops, exceptions, and classes through tested examples and a complete batch-processing script.

Design caching around freshness, invalidation, capacity, and failure. Explore cache-aside, Redis eviction, HTTP caching, stampedes, and safe fallback paths.

Combine values with Cats Semigroup and Monoid. Build a request-summary instance, test its laws, and understand ordering, empty inputs, averages,...
Open source
Tools I build.
Code you can use.
Practical tools and libraries, with the source open to explore.
Explore open source →Featured project
Mockery
A mock REST server with YAML configuration, request matching, and a built-in browser editor. Run it from a single downloaded binary.
Explore Mockery →
Prabhat Kashyap
Senior Technical ArchitectI build and explain backend systems, from Scala and JVM internals to distributed systems and practical AI engineering.
Read my bio →Get new articles
Practical engineering notes, published when there is something worth reading.