Azure Cosmos DB: Partition Keys and Data Modeling

Choosing the right partition key is the most important Cosmos DB decision you’ll make. Get it wrong, and you’ll hit performance issues. Here’s how to think about it. What is a Partition Key? Cosmos DB distributes data across physical partitions based on your partition key. All items with the same partition key value live together. […]

Read more →

TypeScript Interfaces and Types: When to Use Which

One of the most common questions I get about TypeScript: should I use an interface or a type? Both can describe object shapes, but they have subtle differences. Here’s when to use each. The Quick Answer Use interfaces for object shapes and public APIs. Use types for unions, intersections, and complex type manipulations. When in […]

Read more →
Posted in Uncategorized