Code Monkey home page Code Monkey logo

sdb's Introduction

SDB :纯 Go 开发、数据结构丰富、持久化、简单易用的 NoSQL 数据库


为什么需要 SDB?

试想以下业务场景:

  • 计数服务:对内容的点赞量、播放量进行统计
  • 推荐服务:每个用户有一个包含内容和权重推荐列表
  • 评论服务:查看内容的评论列表

在传统的做法中,我们会通过 MySQL + Redis 的方式实现。其中 MySQL 提供数据的持久化能力,Redis 提供高性能的读写能力。在这样的架构下会面临以下问题:

  • 同时部署 MySQL + Redis,机器成本高
  • MySQL + Redis 数据不同步带来的一致性问题
  • 随着业务上涨,MySQL 面临海量数据的读写压力

回过头来看上面的需求,我们真正需要的其实是有持久化能力的 Redis。 业内也有解决方案,如:

SDB 也是应对上面问题提供的解决方案。

RoadMap

  • 数据结构
    • List
    • Linked
    • String
    • Set
    • SortedSet
    • BitMap
    • BloomFilter
    • GeoHash
  • Grpc Server
  • Prometheus 监控
  • kv 存储引擎接入
    • badger
  • 集群
    • 主从
    • 分布式

sdb 背后的设计

友链

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.