Home

Awesome

<div align="center"> <h1>Layotto (L8): To be the next layer of OSI layer 7</h1> <img src="https://gw.alipayobjects.com/zos/bmw-prod/65518bfc-8ba5-4234-a5c5-2bc065e3a5f0.svg" height="120px"/>

Layotto Env Pipeline 🌊 Layotto Dev Pipeline 🌊

GoDoc Go Report Card codecov Average time to resolve an issue

</div>

ζŸ₯ηœ‹δΈ­ζ–‡η‰ˆζœ¬

Layotto(/leΙͺΛˆΙ’tΙ™ΚŠ/) is an application runtime developed using Golang, which provides various distributed capabilities for applications, such as state management, configuration management, and event pub/sub capabilities to simplify application development.

Layotto is built on the open source data plane MOSN .In addition to providing distributed building blocks, Layotto can also serve as the data plane of Service Mesh and has the ability to control traffic.

Motivation

Layotto aims to combine Multi-Runtime with Service Mesh into one sidecar. No matter which product you are using as the Service Mesh data plane (e.g. MOSN,Envoy or any other product), you can always attach Layotto to it and add Multi-Runtime capabilities without adding new sidecars.

For example, by adding Runtime capabilities to MOSN, a Layotto process can both serve as the data plane of istio and provide various Runtime APIs (such as Configuration API, Pub/Sub API, etc.)

In addition, we were surprised to find that a sidecar can do much more than that. We are trying to make Layotto even the runtime container of FaaS (Function as a service) with the magic power of WebAssembly .

Features

Project Architecture

As shown in the architecture diagram below, Layotto uses the open source MOSN as the base to provide network layer management capabilities while providing distributed capabilities. The business logic can directly interact with Layotto through a lightweight SDK without paying attention to the specific back-end infrastructure.

Layotto provides SDKs in various languages. The sdk interacts with Layotto through grpc. Application developers only need to specify their own infrastructure type through the configuration file configure file provided by Layotto. No coding changes are required, which greatly improves the portability of the program.

<img src="https://gw.alipayobjects.com/mdn/rms_5891a1/afts/img/A*oRkFR63JB7cAAAAAAAAAAAAAARQnAQ" />

Quickstarts

Get started with Layotto

You can try the quickstart demos below to get started with Layotto. In addition, you can experience the online laboratory

API

APIstatusquick startdesc
Stateβœ…demoWrite/Query the data of the Key/Value model
Pub/Subβœ…demoPublish/Subscribe message through various Message Queue
Service Invokeβœ…demoCall Service through MOSN (another istio data plane)
Configβœ…demoWrite/Query/Subscribe the config through various Config Center
Lockβœ…demoDistributed lock API
Sequencerβœ…demoGenerate distributed unique and incremental ID
Fileβœ…TODOFile API implementation
Bindingβœ…TODOTransparent data transmission API

Service Mesh

featurestatusquick startdesc
istioβœ…demoAs the data plane of istio

Extendability

featurestatusquick startdesc
API pluginβœ…demoYou can add your own API !

Actuator

featurestatusquick startdesc
Health Checkβœ…demoQuery health state of app and components in Layotto
Metadata Queryβœ…demoQuery metadata in Layotto/app

Traffic Control

featurestatusquick startdesc
TCP Copyβœ…demoDump the tcp traffic received by Layotto into local file system
Flow Controlβœ…demolimit access to the APIs provided by Layotto

Write your bussiness logic using WASM

featurestatusquick startdesc
Go (TinyGo)βœ…demoCompile Code written by TinyGo to *.wasm and run in Layotto
Rustβœ…demoCompile Code written by Rust to *.wasm and run in Layotto
AssemblyScriptβœ…demoCompile Code written by AssemblyScript to *.wasm and run in Layotto

As a FaaS(Serverless) runtime (Layotto + WebAssembly + k8s)

featurestatusquick startdesc
Go (TinyGo)βœ…demoCompile Code written by TinyGo to *.wasm and run in Layotto And Scheduled by k8s.
Rustβœ…demoCompile Code written by Rust to *.wasm and run in Layotto And Scheduled by k8s.
AssemblyScriptβœ…demoCompile Code written by AssemblyScript to *.wasm and run in Layotto And Scheduled by k8s.

Presentations

Landscapes

<p align="center"> <img src="https://landscape.cncf.io/images/left-logo.svg" width="150"/>&nbsp;&nbsp;<img src="https://landscape.cncf.io/images/right-logo.svg" width="200"/> <br/><br/> Layotto enriches the <a href="https://landscape.cncf.io/serverless">CNCF CLOUD NATIVE Landscape.</a> </p>

Community

Contact Us

PlatformLink
πŸ’¬ DingTalk (preferred)Search the group number: 31912621 or scan the QR code below <br> <img src="https://img.alicdn.com/imgextra/i2/O1CN01SjbQiK21NgcAxArxq_!!6000000006973-0-tps-900-912.jpg" height="200px">

How to contribute

Where to start? Check "Community tasks" list!

As a programming enthusiast , have you ever felt that you want to participate in the development of an open source project, but don't know where to start? In order to help everyone better participate in open source projects, our community will regularly publish community tasks to help everyone learn by doing!

Document Contribution Guide

Component Development Guide

Layotto Github Workflows

Layotto Commands Guide

Layotto Contributor Guide

Contributors

Thank y'all!

<a href="https://github.com/mosn/layotto/graphs/contributors"> <img src="https://contrib.rocks/image?repo=mosn/layotto" /> </a>

Design Documents

Actuator Design Doc

Configuration API with Apollo

Pubsub API and Compability with Dapr Component

RPC Design Doc

Distributed Lock API Design

FaaS Design

FAQ

Difference with dapr?

dapr is an excellent Runtime product, but it lacks the ability of Service Mesh, which is necessary for the Runtime product used in production environment, so we hope to combine Runtime with Service Mesh into one sidecar to meet more complex production requirements.