Skip to content

Instantly share code, notes, and snippets.

Model question

Hey, I'd like you to deeply think through and help decide an approach for an org-level microservice broker+integrator that solves the following constraints:

  • Centralizes all cross-team contracts. No fragmented message queues, no ad-hoc cross-team coupling, everything is coupled to the integrator only and the integrator couples to everything else.
  • Maintains performance for this critical piece of infra while at the same time keeping routing declarative and easy to audit
  • Allows declarative definitions of each service's API inbound and outbound from a central config system, ideally language/sdk driven instead of yaml (can be any language you think suits best)
  • Implements each API surface as namespaced jsonrpc, possibly with streaming semantics for multi-response requests (subscriptions, etc)
  • Has file handling semantics as a first-class-citizen. Becomes the source of truth of service-owned files, including ownership and borrowing. Files are never mutable, but ownership means the file ca
@arduano
arduano / handle_demo.rs
Created August 4, 2024 23:47
Handle-based API demo
// Internal synth stuff
pub struct Synth {
pub some_data: u32,
}
impl Synth {
pub fn new() -> Self {
Self { some_data: 0 }
}