Skip to content
/ layotto Public
forked from mosn/layotto

A fast and efficient cloud native application runtime

License

Notifications You must be signed in to change notification settings

stulzq/layotto

 
 

Repository files navigation

Layotto (L8):To be the next layer of OSI layer 7

codecov Average time to resolve an issue

查看中文版本

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) and reloadable sdk 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.

Architecture

Quickstarts

Get started with Layotto

You can try the configuration demo with apollo to get started with Layotto.

For other features,see the demos below:

API

API status quick start components desc
State demo list Write/Query the data of the Key/Value model
Pub/Sub demo list Publish/Subscribe message through various Message Queue
Service Invoke demo list Call Service through MOSN (another istio data plane)
Config demo list Write/Query/Subscribe the config through various Config Center
Lock demo list Distribute lock implementation
Sequencer demo list Distribube auto increment ID generator
File TODO list File API implementation
Binding TODO TODO Transparent data transmission API

Extendability

feature status quick start desc
API plugin demo You can add your own API !

Actuator

feature status quick start desc
Health Check demo Query health state of app and components in Layotto
Metadata Query demo Query metadata in Layotto/app

Traffic Control

feature status quick start desc
TCP Copy demo Dump the tcp traffic received by Layotto into local file system
Flow Control demo limit access to the APIs provided by Layotto

Multilingual programming based on WASM

feature status quick start desc
Go (TinyGo) demo Compile Code written by TinyGo to *.wasm and run in Layotto
Rust TODO TODO Compile Code written by Rust to *.wasm and run in Layotto
AssemblyScript TODO TODO Compile Code written by AssemblyScript to *.wasm and run in Layotto

FaaS (Layotto + WebAssembly + k8s)

feature status quick start desc
Go (TinyGo) demo Compile Code written by TinyGo to *.wasm and run in Layotto And Scheduled by k8s.
Rust TODO TODO Compile Code written by Rust to *.wasm and run in Layotto And Scheduled by k8s.
AssemblyScript TODO TODO Compile Code written by AssemblyScript to *.wasm and run in Layotto And Scheduled by k8s.

Service Mesh

feature status quick start desc
istio demo As the data plane of istio

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

Presentations

Landscapes

  

Layotto enriches the CNCF CLOUD NATIVE Landscape.

Community

Contact Us

Platform Link
💬 DingTalk (preferred) Search the group number: 31912621 or scan the QR code below

Contributing to Layotto

See the Development Guide to get started with building and developing.

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.

About

A fast and efficient cloud native application runtime

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 99.4%
  • Other 0.6%