Home / Companies / Wundergraph / Blog / Post Details
Content Deep Dive

An Introduction to Cosmo Router — Blazingly Fast Open-Source Federation V1/V2 Gateway

Blog post from Wundergraph

Post Details
Company
Date Published
Author
Prithwish Nath
Word Count
2,755
Language
English
Hacker News Points
-
Summary

The Cosmo Router is a high-performance, open-source, Federation V1/V2 compatible gateway that enables scalable and modular architectures for federated GraphQL. It acts as the linchpin that binds disparate data sources together, making them accessible through a single cohesive API while ensuring adaptability. The Router uses a customized DataLoader pattern to solve the N+1 problem, batching queries to improve efficiency and performance. It also features Ludicrous Mode, which eliminates redundant requests for the same data, optimizing network traffic and reducing the load on origin servers. The Router is stateless, allowing multiple instances to be provisioned according to requirements, and provides customizability through Go modules. Additionally, it has been instrumented with OpenTelemetry, Prometheus, and RED Metrics for analytics and performance monitoring.