Atlas

[ Rust · IPC · Shared memory ]

Let processes talk.
Without .

Atlas is a message passing API for shared memory, so processes on one machine can talk fast. atlas-web is a Rust web framework built to sit on top of it.

channel.rs
atlas
use atlas::Channel;
 
// A named channel backed by shared memory
let orders = Channel::<Order>::create("orders")?;
 
// Any process on the machine can open it by name
let same = Channel::<Order>::open("orders")?;

Illustrative API. Names may change.

Illustrative interface.

[ Platform ]

Fast local messaging, and a web framework to match.

01

Message passing

Typed messages move between processes through named channels.

02

Shared memory

Channels live in memory the processes share, so data is not pushed through sockets.

03

Async friendly

Send and receive with await, ready for async Rust.

04

atlas-web

A Rust web framework in the family of hyper, tokio and actix.

05

Built in Rust

Memory safety and a strong type system where they matter most.

06

Small surface

A compact API that is quick to learn.

IPC

message passing

SHM

shared memory

Rust

safe systems code

Web

atlas-web

Processes should talk to each other the way functions call each other.
The Atlas idea

[ From tangled to direct ]

Sockets and glue code are noise. Atlas gives you one clear line.

Services on one machine often talk through layers of serialisation and network calls. Atlas lets them share memory and pass messages directly, and atlas-web puts them on the web.

See how it works
channel.rs
atlas
use atlas::Channel;
 
// A named channel backed by shared memory
let orders = Channel::<Order>::create("orders")?;
 
// Any process on the machine can open it by name
let same = Channel::<Order>::open("orders")?;

Illustrative API. Names may change.

[ 01 · Atlas ]

Message passing over shared memory.

  • Named channels

    Create a channel once and open it by name from any process.

  • Typed messages

    Send Rust types, not loose bytes.

  • Shared memory

    Channels live in memory the processes share.

  • Async ready

    Send and receive with await.

main.rs · atlas-web
atlas-web
use atlas_web::{App, Json};
 
#[tokio::main]
async fn main() {
let app = App::new().get("/orders/:id", get_order);
app.listen("0.0.0.0:8080").await;
}
 
async fn get_order(id: u64) -> Json<Order> {
Json(lookup(id).await)
}

Illustrative API. Names may change.

[ 02 · atlas-web ]

A Rust web framework on top.

  • Routes and handlers

    Plain async functions become HTTP endpoints.

  • Async from the ground up

    Built for tokio style runtimes.

  • Extractors and JSON

    Pull data from requests and return typed responses.

  • Talks to Atlas

    Hand work to other processes through channels.

architecture
one machine
process Aprocess BSHARED MEMORYatlas-webHTTP

Illustrative diagram.

[ 03 · Together ]

From the web request to the worker.

  • One machine

    Processes share a region of memory.

  • Producers and consumers

    Any process can send, any process can receive.

  • Web in front

    atlas-web takes the request and passes it on.

  • Small moving parts

    Fewer layers between your services.

[ How it works ]

From one channel to a running service.

channeltypednamed

[ Contact ]

Building something that needs fast local messaging?

hello@atlas.example