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

Folders and files

NameName
Last commit message
Last commit date
Mar 9, 2025
Jun 11, 2024
Feb 18, 2025
Oct 21, 2024
Mar 19, 2024
Dec 21, 2022
Mar 5, 2021
Mar 6, 2025
Feb 3, 2025
Mar 6, 2025
Dec 26, 2021
Jan 19, 2023
Oct 9, 2023
Feb 3, 2025
Mar 13, 2025
Dec 7, 2022
Jul 4, 2024
Nov 3, 2022
Mar 19, 2024
Jun 10, 2024
Feb 21, 2025
Feb 21, 2025
Jun 27, 2023
Aug 4, 2022
Feb 17, 2025
Aug 4, 2022
Aug 13, 2022
Mar 13, 2025
Mar 13, 2025
Mar 9, 2025

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.