Community tasks
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, the MOSN community will regularly publish community tasks to help everyone learn by doing!
Task List
Tasks of different difficulty are released:
Easy
Layotto runtime
Bug fix
Write a Feature
Comment related
SDK related
Document related
Translation
Tests related
Components
in-memory components
See #67 (comment)
We want to let users and sdk developers run our demo without go , docker and back-end storage (e.g. redis) pre-installed.
To achieve this goal, we need to add in-memory components,including:
You can take the in-memory state store component as an example,see #327
Medium
Add support for Dapr API
We want Layotto to support both Layotto API and Dapr API. In this way, if users are worried about vendor lock-in, they can use Dapr SDK to switch between Layotto and Dapr freely.
You can refer to:
#361
#362
SDK
Actuator
WASM
File api implementation
Sequencer API related
Distributed Lock API
Engineering
Currently we use github actions as ci/cd pipeline, and the configuration file is here
You can refer to some github actions high-quality tutorials:
https://www.ruanyifeng.com/blog/2019/09/getting-started-with-github-actions.html
http://www.ruanyifeng.com/blog/2019/12/github_actions.html
Hard
Observability
- Integrate with Skywalking, Jaeger and other systems
Layotto currently supports tracing and we hope to integrate with observability-related platforms such as Skywalking and Jaeger.
Runtime API Lab
Hard
#530
WASM Lab
If you are interested, you can reply and we will assign the task to you
Kubernetes Lab
Istio
Community tasks
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, the MOSN community will regularly publish community tasks to help everyone learn by doing!
Task List
Tasks of different difficulty are released:
Easy
Layotto runtime
recoverfor all codes that create new goroutines. See Reduce the risk of panic #197Bug fix
🤔 UT of
mosn.io/layotto/components/rpc/invoker/mosn/channelfailed #550Write a Feature
Comment related
Considering that the workload of adding comments to all the modules is relatively large, we split it into multiple tasks:
SDK related
assigned.see Add .net sdk #130
assigned. see simple java client #153
Document related
add go-sdk usage documents.See http://mosn.io/layotto/#/en/sdk_reference/go/start
add document for State API.See https://mosn.io/layotto/#/en/api_reference/state/reference
add document for Pub/Sub API.See https://mosn.io/layotto/#/en/api_reference/pubsub/reference
add document for Distributed Lock API.See https://mosn.io/layotto/#/en/api_reference/lock/reference
add document for RPC API.See https://mosn.io/layotto/#/en/api_reference/rpc/reference already assigned Add document for RPC API. #185
Change MinIO's demo to use docker to deploy MinIO by default, and Layotto to invoke local MinIO.
Currently, the demo uses the MinIO official demo service by default, but the service is unstable, so we want to use docker to deploy MinIO and make the demo more stable.
See doc(quickstart): use local minIO instead of remote minIO service #450
Delete redundent demos. See https://github.com/mosn/layotto/issues
Translation
Translate Skywalking quickstart documentation into English
Translate How to deploy and upgrade Layotto into English
Translate "Explain Layotto's github workflow" into Chinese
将“介绍 layotto CI” 的文档翻译成英文
translate:
docs/en/development/github-workflows.mdto English #545将“介绍如何自动测试 quickstart” 的文档翻译成英文
https://mosn.io/layotto/#/zh/development/test-quickstart
Tests related
Add unit tests for

actuatormodule. The code is underpkg/filter/stream/actuator/httpUnderstand the implementation of wasm module & add unit tests: see Add unit tests for WASM related code; 为wasm模块补充单测 #105
add more unit test whereever you like to make layotto's unit test coverage higher(currently it's only 46%)
Add unit tests for runtime/runtime.go and grpc/api.go. These two files are the core engine code of layotto, responsible for component lifecycle management and grpc request processing respectively
Already assigned to @tianjipeng See Add unit tests for runtime/runtime.go and grpc/api.go #138
Add integration test cases for a certain type of API. See Add integration test cases #107 assigned to @seeflood
Understand the implementation of the rpc module & add unit tests: see Add unit tests for RPC related code #106 Already done by @tianjipeng
Add integrate test. see [GLCC] Add more components and api features in integrate test #415
Components
in-memory components
See #67 (comment)
We want to let users and sdk developers run our demo without go , docker and back-end storage (e.g. redis) pre-installed.
To achieve this goal, we need to add in-memory components,including:
You can take the in-memory state store component as an example,see #327
Medium
Add support for Dapr API
We want Layotto to support both Layotto API and Dapr API. In this way, if users are worried about vendor lock-in, they can use Dapr SDK to switch between Layotto and Dapr freely.
You can refer to:
#361
#362
SDK
Improve .net sdk. Make it have the same capabilities and api as go sdk
assigned.see Add .net sdk #130
Develop python sdk
Because we want to reduce the cost of maintaining multi-language SDKs, we want to reuse Dapr SDKs as much as possible. Therefore, this task suggests to fork the Dapr python SDKs for modification (because the package path of the proto interface is different, so the code compiled by proto is different, so we need to do some modification).
Develop the spring-boot-layotto package. See feat: layotto springboot layotto/java-sdk#8
Let layotto integrate spring boot so that users can use annotations to register pubsub subscription callback
Actuator
WASM
Achieve the effect of dynamically replacing .wasm at runtime. see .wasm module hot reload #165
File api implementation
Sequencer API related
Sequencer API Component:Choose an open source component or cloud service you like (such as zookeeper, leaf, etc.) to implement distributed auto-increment id generation service.
Etcd
Stand-alone redis
assigned
Zookeeper
assigned
Leaf
Mongo
Consul
snowflake algorithm (need to avoid clock rollback problems) assigned.see [GLCC] Implement Sequencer API with snowflake algorithm #193
Mysql
PostgreSQL
Any other storage
Implement the segment caching feature of Sequencer API. assigned to @ZLBer ,see Implement the segment caching feature of Sequencer API #158
You can refer to Leaf to do double buffer optimization
The function to be implemented is at https://github.com/mosn/layotto/blob/main/pkg/runtime/sequencer/cache.go
Distributed Lock API
done
assigned.see Zookeeper lock #111
assigned.see Add etcd lock #128
assigned.see Use Consul to implement Distributed Lock API #129
assigned.see add mongo distributed lock #348
refer to https://github.com/dekses/cassandra-lock
Engineering
type(scope): subjectin order to make the commit history more readable.See feat: add commit message lint to workflow #243
go lintin ci/cd pipeline. For example:recoverIt doesn't matter if these examples can't be realized. As long as we can do valuable automated inspections
Currently we use github actions as ci/cd pipeline, and the configuration file is here
You can refer to some github actions high-quality tutorials:
https://www.ruanyifeng.com/blog/2019/09/getting-started-with-github-actions.html
http://www.ruanyifeng.com/blog/2019/12/github_actions.html
You need to investigate the solution to see whether you write a build script yourself, using the cross-compilation feature of go, or just use a exist platform to help you build
Hard
Observability
Layotto currently supports tracing and we hope to integrate with observability-related platforms such as Skywalking and Jaeger.
Runtime API Lab
Hard
#530
Redis API.
Kafka API.
Alicloud SLS component can implement Kafka-like API too.
Design transaction message API (like RocketMQ's) for pubsub
Delay message API for pubsub
Let Layotto support Dapr's Config API (alpha version)
We have been discussing and working with Alibaba and Dapr community to contribute a Config API for Dapr since March of this year,and recently it was finally merged into Dapr .
Now it's time to can make Layotto support Dapr's Config API.
Dapr Config API is still in the alpha version, which is similar to Layotto's existing Config API but lacks some fields. You can refer to Layotto's existing implementation during development.
See Dapr's API definition
Let Layotto support secret API.
Layotto's goal is to build a Runtime API standard with Dapr and other communities (promote Dapr API as an industry standard, and Layotto as an implementation of this API), so it needs to support Dapr's secret API. Therefore, this task needs to port Dapr's secret API into Layotto. For Dapr's secret management related documents, see https://docs.dapr.io/developing-applications/building-blocks/secrets/
assigned. see Let Layotto support secret API #212
Layotto support Binding API. Same as above, porting Dapr's binding API into Layotto
WASM Lab
If you are interested, you can reply and we will assign the task to you
Kubernetes Lab
Istio