All Projects → yorkie-team → Yorkie

yorkie-team / Yorkie

Licence: apache-2.0
Yorkie is a document store for collaborative applications.

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Yorkie

Hivemq Mqtt Tensorflow Kafka Realtime Iot Machine Learning Training Inference
Real Time Big Data / IoT Machine Learning (Model Training and Inference) with HiveMQ (MQTT), TensorFlow IO and Apache Kafka - no additional data store like S3, HDFS or Spark required
Stars: ✭ 204 (+4.08%)
Mutual labels:  grpc, mongodb
Gokit
Go Examples: From basics to distributed systems
Stars: ✭ 325 (+65.82%)
Mutual labels:  grpc, mongodb
yorkie-rust-sdk
Yorkie Rust SDK
Stars: ✭ 13 (-93.37%)
Mutual labels:  grpc, crdt
Multiplay Grpc Server
gRPC server for Multiplaying in Rust
Stars: ✭ 41 (-79.08%)
Mutual labels:  grpc, mongodb
Vertx Zero
Zero Framework:http://www.vertxup.cn
Stars: ✭ 320 (+63.27%)
Mutual labels:  grpc, mongodb
Almost Famous
🌟 Almost-Famous(成名之路) ——卡牌游戏开源项目,架构使用SpringBoot+Netty+Maven+SpringCloud来搭建多进程分布式框架,包括Cloud、Unique、Login、Game、Match、Battle 等服务。
Stars: ✭ 131 (-33.16%)
Mutual labels:  grpc, mongodb
Obevo
Obevo is a database deployment tool that handles enterprise scale schemas and complexity
Stars: ✭ 192 (-2.04%)
Mutual labels:  mongodb
Social Platform Donut Frontend
This is an Open Source social Platform where people can interact with Open Source expertise around the globe and work on different projects
Stars: ✭ 195 (-0.51%)
Mutual labels:  mongodb
Liiklus
Reactive (RSocket/gRPC) Gateway for the event-based systems
Stars: ✭ 192 (-2.04%)
Mutual labels:  grpc
Quokka
LOOKING FOR NEW MAINTAINER - Quokka is a Content Management System - `docker run --rm -it -p 5000:5000 quokka/quokka`
Stars: ✭ 2,198 (+1021.43%)
Mutual labels:  mongodb
Rastreiobot
Telegram Bot @RastreioBot
Stars: ✭ 196 (+0%)
Mutual labels:  mongodb
Drywall
🚧 Project moved, see Aqua and Frame
Stars: ✭ 2,205 (+1025%)
Mutual labels:  mongodb
Grails Data Mapping
GORM - Groovy Object Mapping
Stars: ✭ 194 (-1.02%)
Mutual labels:  mongodb
Zend Diagnostics
Universal set of diagnostic tests for PHP applications.
Stars: ✭ 192 (-2.04%)
Mutual labels:  mongodb
Mern Marketplace
A MERN stack based online marketplace application [Full-Stack React Projects]
Stars: ✭ 194 (-1.02%)
Mutual labels:  mongodb
Mongoose
Mongoose module for Nest framework (node.js) 🍸
Stars: ✭ 191 (-2.55%)
Mutual labels:  mongodb
Arctic
High performance datastore for time series and tick data
Stars: ✭ 2,525 (+1188.27%)
Mutual labels:  mongodb
Grpc Kotlin
gRPC with Kotlin Coroutines
Stars: ✭ 190 (-3.06%)
Mutual labels:  grpc
Firecamp
Serverless Platform for the stateful services
Stars: ✭ 194 (-1.02%)
Mutual labels:  mongodb
Stevejobs
A simple jobs queue that just works (for Meteor.js)
Stars: ✭ 195 (-0.51%)
Mutual labels:  mongodb

Yorkie

Github Twitter Slack Contributors Commits

Go Report Card CodeCov Godoc

Yorkie is an open source document store for building collaborative editing applications.

Yorkie consists of three main components: Client, Document and Agent.

 +--Client "A" (Go)----+
 | +--Document "D-1"-+ |               +--Agent------------------+
 | | { a: 1, b: {} } | <-- Changes --> | +--Collection "C-1"---+ |
 | +-----------------+ |               | | +--Document "D-1"-+ | |      +--Mongo DB--+
 +---------------------+               | | | { a: 1, b: {} } | | |      | Changes    |
                                       | | +-----------------+ | | <--> | Snapshot   |
 +--Client "B" (JS)----+               | | +--Document "D-2"-+ | |      +------------+
 | +--Document "D-1"-+ |               | | | { a: 1, b: {} } | | |
 | | { a: 2, b: {} } | <-- Changes --> | | +-----------------+ | |
 | +-----------------+ |               | +---------------------+ |
 +---------------------+               +-------------------------+
                                                    ^
 +--Client "C" (JS)------+                          |
 | +--Query "Q-1"------+ |                          |
 | | db.['C-1'].find() | <-- MongoDB query ---------+
 | +-------------------+ |
 +-----------------------+
  • Clients can have a replica of the document representing an application model locally on several devices.
  • Each client can independently update the document on their local device, even while offline.
  • When a network connection is available, the client figures out which changes need to be synced from one device to another, and brings them into the same state.
  • If the document was changed concurrently on different devices, Yorkie automatically syncs the changes, so that every replica ends up in the same state with resolving conflict.

Agent and SDKs

Quick Start

For now, we didn't deploy binary yet. So you should compile Yorkie yourself.

Yorkie uses MongoDB to store it's data. To start MongoDB, type docker-compose -f docker/docker-compose.yml up -d.

Next, let's start a Yorkie agent. Agent runs until they're told to quit and handle the communication of maintenance tasks of Agent. and start the agent:

$ ./bin/yorkie agent

Use the -c option to change settings such as the MongoDB connectionURI.

$ ./bin/yorkie agent -c yorkie.json

The configuration file with default values is shown below.

https://github.com/yorkie-team/yorkie/blob/main/yorkie/config.sample.json

Documentation

Full, comprehensive documentation is viewable on the Yorkie website:

https://yorkie.dev/docs/main/

Developing Yorkie

For building Yorkie, You'll first need Go installed (version 1.16+ is required). Make sure you have Go properly installed, including setting up your GOPATH. Then download a pre-built binary from release page and install the protobuf compiler (version 3.4.0+ is required).

We need to install Golang packages to build Yorkie locally. You can run make tools to install the required packages.

Next, clone this repository into some local directory and then just type make build. In a few moments, you'll have a working yorkie executable:

$ make build
...
$ bin/yorkie

Tests can be run by typing make test.

NOTE: make test includes integration tests that require local applications such as MongoDB, etcd. To start them, type docker-compose -f docker/docker-compose-ci.yml up --build -d.

If you make any changes to the code, run make fmt in order to automatically format the code according to Go standards.

Contributing

See CONTRIBUTING for details on submitting patches and the contribution workflow.

Sponsors

Is your company using Yorkie? Ask your boss to support us. It will help us dedicate more time to maintain this project and to make it even better for all our users. Also your company logo will show up on here and on our website :-) [Become a sponsor]

Backers

Please be our Backers.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].