Architecting for <1s Latency: Managing Eventual Consistency in Distributed Search Platforms
At a logistics visibility company, the shipment state can change thousands of times per second due to the massive scale of operations. Such changes take place when, for instance, a carrier scans a package or a route changes. Within milliseconds, those events are ingested by Kafka into our search index. The key requirement for these logistics operations is the ability to see the current status, not the one from five seconds ago For a long time, our engineering team couldn’t achieve that level of precision. The cluster appeared healthy, writes were acknowledged, yet search results became stale. The issue we faced and addressed is called an eventual consistency problem. The insidious part is
…