By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: LinkedIn Announces Northguard and Xinfra: Scaling Beyond Kafka for Log Storage and Pub/Sub
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > News > LinkedIn Announces Northguard and Xinfra: Scaling Beyond Kafka for Log Storage and Pub/Sub
News

LinkedIn Announces Northguard and Xinfra: Scaling Beyond Kafka for Log Storage and Pub/Sub

News Room
Last updated: 2025/06/25 at 9:26 AM
News Room Published 25 June 2025
Share
SHARE

LinkedIn today announced Northguard, a scalable log storage system that replaces Kafka, and Xinfra, a virtualized Pub/Sub layer. Northguard delivers sharded data & metadata, log striping, strong consistency, and self-balancing clusters at a larger scale than Kafka, while Xinfra enables seamless migration and unified access across Kafka and Northguard.

According to LinkedIn’s engineers, Kafka had become increasingly difficult to manage at LinkedIn’s scale (32T records/day, 17 PB/day, 400K topics, 150 clusters). Northguard’s architecture, consisting of shared data & metadata, decentralized coordination, and minimal global state, eliminates Kafka’s single-controller and partition-based limitations.

Northguard’s data model organizes logs into records, segments, ranges, and topics. Records (key, value, headers) are written into segments — immutable units of replication. Segments form ranges, which represent a contiguous keyspace slice and support dynamic splitting and merging for scaling and ordering. Topics, on the other hand, are collections of ranges that cover the entire keyspace, with flexible storage policies for replication and retention.


A Northguard Range containing three segments (source)

This fine-grained structure enables a balanced load, high availability, and seamless scaling. Brokers naturally self-balance as producers produce new segments, eliminating the need for expensive rebalancing or data movement when brokers are added or fail.



New segments get added to the range and get assigned to potentially new brokers (source)

Compared to traditional indexed partitions, ranges provide a more flexible scaling mechanism. Range splits only interrupt clients’ writing to the affected range (not the entire topic) while maintaining total ordering guarantees. This difference reduces disruption and avoids costly “stop-the-world” synchronization. Additionally, aligned ranges across topics simplify stream processing joins by reducing the need for shuffles.

Northguard’s metadata model uses sharded, Raft-backed replicated state machines (DS-RSM), distributed across vnodes. Each vnode manages metadata for topics, ranges, and segments — tracking state changes (e.g., splits, merges, sealing), replica sets, and retention policies. By sharding metadata via consistent hashing and using decentralized coordination, Northguard avoids Kafka’s controller bottlenecks and supports millions of replicas with strong consistency and high availability.

LinkedIn optimized Northguard’s protocols for performance and durability. Metadata operations such as create, delete, and query use unary request/response calls routed to vnode leaders. Produce, consume, and replication flows are sessionized streaming protocols with pipelining and windowing to maximize throughput and minimize latency.

Producers write to active segment leaders, receiving acknowledgments only after fsync on all replicas, ensuring strong durability. Consumers use a similar streaming model with client-controlled flow, supporting efficient high-throughput reads. Active segment replication and sealed segment replication utilize the same efficient streaming architecture, resulting in Northguard’s high performance and self-healing capabilities.

Migrating from Kafka to Northguard at LinkedIn’s scale required seamless, zero-downtime transitions for thousands of mission-critical apps. To support this, LinkedIn built Xinfra, a virtualized Pub/Sub layer that abstracts away physical clusters. Xinfra enables topics to span Kafka and Northguard through dual-write mechanisms, allowing live migrations without client changes.



An example use case where a consumer subscribes to three topics under the same virtual cluster, with each topic located in different clusters (source)

Segment storage in Northguard is pluggable, with the default “fps-store” implementation optimized for durability and latency. It uses a write-ahead log (WAL), creates one file per segment, applies Direct I/O to bypass OS buffering, and maintains a sparse index in RocksDB. Batches of records are flushed and fsynced across replicas within milliseconds, ensuring durability even under failure scenarios. This design avoids cache inconsistencies, supports efficient reads from old segments, and allows predictable performance as clusters grow.

To ensure reliability at scale, Northguard undergoes rigorous testing under deterministic simulation. Entire clusters and clients run in a single-threaded, controlled environment where faults — such as broker shutdowns, network partitions, disk errors, and rolling upgrades — are injected and replayed. This method allows LinkedIn to simulate years of activity daily, catch edge cases early, and continuously validate correctness under complex failure scenarios.

LinkedIn engineers state that they “have successfully migrated thousands of topics from Kafka to Northguard, accounting for trillions of records per day” and that over 90% of applications at LinkedIn are already running Xinfra clients.

InfoQ reached out to LinkedIn regarding intentions to open-source Northguard and Xinfra. LinkedIn stated that they “are focused on finalizing the implementation of Northguard and Xinfra within our internal systems, and as we continue to build, learn, and iterate on these tools, we’ll explore the possibilities of open-sourcing them.”

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article At-Home Hair Removal Gains Ground as Ulike Showcases IPL Tech in Santa Monica
Next Article Genuine live SAP integration without the file upload
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

China approves 135 games in December, including NetEase’s ANANTA and Tencent’s Monster Hunter: Outlanders · TechNode
Computing
We’ve Already Spotted 31 Truly Great Prime Day Deals
Gadget
Want $200 to Spend This Prime Day? Consider Applying for the Prime Visa
News
The Reality of Building Trust in Mobile AI Markets | HackerNoon
Computing

You Might also Like

News

Want $200 to Spend This Prime Day? Consider Applying for the Prime Visa

5 Min Read
News

Apple buys out another Cupertino office complex worth $160 million | AppleInsider

2 Min Read
News

The Best Language Learning Apps for 2025

28 Min Read
News

Early Prime Day soundbar deals you can shop right now

5 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?