117 releases (61 stable)

2.9.3 Dec 4, 2024
2.9.0 Aug 27, 2024
2.8.4 Jul 25, 2024
2.7.2 Mar 21, 2024
0.2.2 Mar 30, 2021

#448 in HTTP server

Download history 318/week @ 2024-08-23 34/week @ 2024-08-30 33/week @ 2024-09-13 24/week @ 2024-09-20 6/week @ 2024-09-27 3/week @ 2024-10-04 1/week @ 2024-10-11 3/week @ 2024-11-08 863/week @ 2024-11-29 3025/week @ 2024-12-06

3,888 downloads per month

Elastic-2.0

1.5MB
750 lines

Harmonizer

This harmonizer offers the ability to invoke a bundled version of the JavaScript library, @apollo/composition, which composes multiple subgraphs into a supergraph.

The bundled version of the federation library that is included is a JavaScript Immediately Invoked Function Expression (IIFE) that is created by running the esbuild bundler on the @apollo/composition package.

When the harmonize function that this crate provides is called with a Vec<SubgraphDefinition> (which is synonymous with the terminology and service list notion that exists within the JavaScript composition library), this crate uses deno_core to invoke the JavaScript within V8. This is ultimately accomplished using rusty_v8's V8 bindings to V8.

While we intend for a future version of composition to be done natively within Rust, this allows us to provide a more stable transition using an already stable composition implementation while we work toward something else.

Dependencies

~86MB
~1.5M SLoC