Microservices vs. Monolithic 00:00:01 One order in one building A small shop has separate teams of responsibilities inside one program. An order can call the stock module and commit two tables together. A modular monolith can still run in multiple process instances. A shopper places an order. The user, order, payment and stock modules are all in one program. The order module asks the user module. This is a function call, so there is no network that could fail. Stock goes down and the order is written in the same transaction. Both changes are there, or neither. The shopper sees the final answer. The business boundary and deployment boundary need not coincide. Keep modules explicit now so a future extraction, if justified, has somewhere sensible to begin. 00:00:52 Move the stockroom across town Once stock and orders own separate databases, an in-process call and shared transaction give way to network messages and local commits. An accepted order can spend time in a pending state. The shopper talks to one entrance, which routes to services. The order service saves the order and an outbox row in one local transaction. The shopper gets the answer pending. Stock has not been asked yet. The stock service reads the event and reserves in its own database. Repeats are ignored. Agree on the customer's meaning of pending, reserve and reject. Establish event identity and reliable publishing before promising that every accepted order will reach the stockroom. 00:01:36 Buy more space for the crowded counter Only the order desk is overloaded in this example. Independent deployment can allow that desk to scale separately. The animation compares two simplified memory budgets under the same business demand. The shop runs two copies of the whole behind a load balancer. One unit does not mean one machine. Ten copies hold the order module, and also ten user, payment and stock modules: 10 times 2 is 20 GB. Ten order copies and two of each other service: 5 + 3 is 8 GB. The platform itself is not counted. Each service may also use what suits it: here Java for payment and Go for stock. Each extra language is another thing to run. The illustrative eight-versus-twenty gigabytes excludes platform overhead. Include spare replicas, service runtimes, networking and operations when deciding whether independent scaling saves money in your system. 00:02:34 Make Friday's release small enough to undo A monolith deploys one unit. A service change can ship independently if its contract remains compatible with old consumers and data. Deployment independence is something teams establish and test. The same line in both styles. The monolith runs all tests. The service runs its own and the contract tests of its callers. The monolith goes live as a whole. Only the order service goes live in the other style. The way back has the same size as the way in. Data migrations often constrain rollback more than process packaging. Plan how both old and new binaries behave while stored records and event schemas are in transition. 00:03:16 Extract the public search desk first The shop already runs. Put a facade in front, build search beside the old path, compare the two on real queries and gradually route traffic. Search can tolerate a slightly delayed index. All requests pass a facade. It changes nothing yet. Search is built beside the monolith with its own index. No user sees it. Each step waits for a day without surprises. A step back is one setting. Search is deleted from the monolith. Then the next part may follow, or not. Retire the old implementation only after verifying coverage, latency and a working way back. Choose a service boundary when an actual scaling, release or ownership pressure pays for the new network boundary.