Skip to content

Commit

Permalink
feat: how it works advanced
Browse files Browse the repository at this point in the history
fix typo
  • Loading branch information
Maxtho8 committed Oct 30, 2023
1 parent 22e8443 commit 9ab5233
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pages/docs/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
},
"index": "Introduction",
"getting-started": "Getting Started",
"user-guide": "User Guide"
"user-guide": "User Guide",
"advanced": "Advanced"
}
5 changes: 5 additions & 0 deletions pages/docs/advanced/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"project-structure": "Project structure",
"how-it-works": "How it works ?",
"getting-involved": "Getting Involved"
}
File renamed without changes.
37 changes: 37 additions & 0 deletions pages/docs/advanced/how-it-works.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import Image from 'next/image';
import Architecture from '../../../public/images/architecture.png';

## How it works ?

<div className="col-span-2 flex items-center justify-center py-2">
<Image src={Architecture} alt="Lambdo Architecture" />
</div>

Lambdo is structured into three main components:

### 1. Initramfs CLI

The CLI is responsible for generating initial RAM file systems (initramfs)
utilized by the virtual machines (VMs).

### 2. API

The API component consists of several parts:

- **HTTP Server**: This server listens to user code execution requests,
processing incoming requests, and forwarding them to the VM manager.

- **VM Manager**: The VM manager maintains a record of all previously launched
VMs and can initiate the creation of new VMs using "Lumper" if no VMs are
currently available. Additionally, it includes a gRPC server that allows VMs
to register themselves with the VM manager once they have started, as well as
a gRPC client for sending code execution requests to available VMs.

### 3. Agent

The agent runs inside the VMs and is comprised of both a gRPC client and server.
Within the agent, the runner engine takes care of tasks such as creating code
files, executing code, and retrieving the output.

The VMs are launched using "Lumper" and are equipped with a Linux kernel built
along with the previously generated initramfs.
File renamed without changes.
Binary file added public/images/architecture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9ab5233

Please sign in to comment.