Skip to content
/ varlog Public

Scalable distributed log storage for strong consistency, total order, and high availability

License

Notifications You must be signed in to change notification settings

kakao/varlog

Repository files navigation

Varlog

ci codecov

Varlog is a strongly consistent distributed log storage. It enables many distributed systems to leverage total-ordered logs to support transactional event processing with high performance, and simplify the building the complex distributed systems.

Installation

With Go module support, add the following import to your code.

import "github.com/kakao/varlog"

Usage

// Open the log.
vlog, _ := varlog.Open(context.Background(), clusterID, mrAddrs)

// Write records to the log.
vlog.Append(context.Background(), topicID, [][]byte{[]byte("hello"), []byte("varlog")})

// Read records from the log.
closer, _ := vlog.Subscribe(context.Background(), topicID, begin, end, func(logEntry varlogpb.LogEntry, err error) {
    fmt.Println(logEntry)
})
defer closer()

License

This software is licensed under the Apache 2 license, quoted below.

Copyright 2022 Kakao Corp. http://www.kakaocorp.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this project except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

Scalable distributed log storage for strong consistency, total order, and high availability

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages