WorkOS AuthKit: Simplify Auth in Your Next.js App (Sponsored)Building auth in Next.js means managing redirects, handling tokens and sessions, and making sure it all works across routes—even in edge environments like Vercel. WorkOS AuthKit solves this with a fully hosted login UI that supports SSO, MFA, passwordless auth, and password-based login. It handles redirects, token exchange, and session logic with minimal config. Install the SDK, configure your redirect URI, and initialize the AuthKitProvider. AuthKit handles login and session logic from there. This week’s system design refresher:
Trillions of Web Pages: Where Does Google Store Them?How Do Companies Ship Code to Production?Here are 11 steps from planning to production:
Over to you: Will you add any other steps to the process? What is Event Sourcing? How is it different from normal CRUD design?The diagram below shows a comparison of normal CRUD system design and event sourcing system design. We use an order service as an example. The event sourcing paradigm is used to design a system with determinism. This changes the philosophy of normal system designs. How does this work? Instead of recording the order states in the database, the event sourcing design persists the events that lead to the state changes in the event store. The event store is an append-only log. The events must be sequenced with incremental numbers to guarantee their ordering. The order states can be rebuilt from the events and maintained in OrderView. If the OrderView is down, we can always rely on the event store which is the source of truth to recover the order states. Let's look at the detailed steps.
Over to you: Which type of system is suitable for event sourcing design? Have you used this paradigm in your work? How Data Lake Architecture Works? |