105 releases (51 stable)

new 2.8.0-connectors.4 May 15, 2024
2.7.4 Apr 22, 2024
2.7.2 Mar 21, 2024
2.6.2 Dec 11, 2023
0.2.2 Mar 30, 2021

#174 in HTTP server

Download history 11/week @ 2024-02-16 75/week @ 2024-02-23 14/week @ 2024-03-01 16/week @ 2024-03-08 47/week @ 2024-03-15 117/week @ 2024-03-22 34/week @ 2024-03-29 59/week @ 2024-04-05 186/week @ 2024-04-12 178/week @ 2024-04-19 188/week @ 2024-04-26 329/week @ 2024-05-03 320/week @ 2024-05-10

1,025 downloads per month

Elastic-2.0

1.5MB
733 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

~92MB
~2M SLoC