Azure Service Bus is Microsoft’s enterprise messaging service. But should you use queues or topics? Here’s the difference and when to use each. Queues: Point-to-Point Queues deliver messages to a single receiver. First-in, first-out. Perfect for work distribution: Topics: Publish-Subscribe Topics deliver messages to multiple subscribers. Each subscriber has its own subscription: When to Use […]
Read more โYear: 2019
SharePoint Online: Customizing Modern Pages with SPFx Extensions
SPFx Extensions let you customize SharePoint beyond web parts. Add headers, footers, field customizers, or command sets. Here’s how to get started with these powerful customization options. Types of Extensions Application Customizer: Add elements to page header/footer Field Customizer: Custom rendering for list columns Command Set: Custom toolbar buttons and context menu items Creating an […]
Read more โEvent Sourcing Fundamentals: Storing Events Instead of State
Event Sourcing flips traditional database design on its head. Instead of storing current state, you store the events that led to that state. It’s not for every project, but when it fits, it’s powerful. The Concept In a typical system, you update records in place. An order goes from “pending” to “shipped” by updating a […]
Read more โ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 โReact Hooks Introduction: useState and useEffect
React 16.8 shipped with Hooks, and they’ve changed how I write React components. No more class components for simple state management. Here’s my introduction to the two most important hooks. The Problem with Classes Class components work, but they’re verbose. You need constructors, binding methods, lifecycle methods spread across the component. Hooks let you use […]
Read more โ