Coder Social home page Coder Social logo

blog's Introduction

  • 👋 Hi, I’m Liqun LI
  • 👀 I’m interested in learning new technologies and building systems
  • 🌱 I’m currently learning prompting LLMs for various interesting scenarios
  • 💞️ I’m looking to collaborate on anything interesting projects
  • 📫 Please reach me via liqul (at) outlook.com

blog's People

Contributors

liqul avatar

Watchers

 avatar

blog's Issues

总结一下对象存储元数据与文件之间的关系

Data model
metadata -> object
metadata: key + others + create_time + pointer

Lock based

insert:

  1. lock the key, even if the key is not presented
  2. read by the key
    2.1 if does not exist, insert
    2.2 if exists, update the metadata (including create_time), backup the old pointer
  3. es as a special case, no lock but version control

delete:
= insert a tombstone with an empty pointer

update:
only update non-key fields

search:
since each key has only one entry, just find it

MVCC

insert:
insert with current timestamp as version. if two insertions with the same version, one fails

delete:
= insert a tombstone with an empty pointer

update:
= insert a new version with a new timestamp. and other unmodified fields the same with the latest version

search:
for each key, get the version with the latest timestamp

性质和方法

exactly once = user-defined id + server-side deduplication
-> server-side cache -> batch process with snapshot -> delay

strong consistency -> single-point failure | wal with consensus support

strong scalability -> consistency hash

two-phase commit -> distributed transaction

atomicity -> transaction + (lock | mvcc)

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.