All Projects → cabol → Shards

cabol / Shards

Licence: mit
Partitioned ETS tables for Erlang and Elixir

Programming Languages

elixir
2628 projects
erlang
1774 projects

Labels

Projects that are alternatives of or similar to Shards

rye
RYE, Native Sharding RDBMS
Stars: ✭ 54 (-79.7%)
Mutual labels:  sharding
mongodb-cluster
MongoDB sharded cluster
Stars: ✭ 25 (-90.6%)
Mutual labels:  sharding
Discord-Bot-TypeScript-Template
Discord bot - A discord.js bot template written with TypeScript.
Stars: ✭ 86 (-67.67%)
Mutual labels:  sharding
db-sharding
Oracle Sharded database deployment automation and tools for use in client applications.
Stars: ✭ 30 (-88.72%)
Mutual labels:  sharding
activerecord-shard for
Database Sharding Library for ActiveRecord
Stars: ✭ 16 (-93.98%)
Mutual labels:  sharding
diamond drops
WIP on sharding and Ethereum 2.0 with enshrined-in-consensus data availability and Rust: a fast, safe, concurrent and practical programming language
Stars: ✭ 54 (-79.7%)
Mutual labels:  sharding
eris-fleet
Cluster management for Discord bots using the Eris library.
Stars: ✭ 38 (-85.71%)
Mutual labels:  sharding
shargri-la
A transaction-level sharding simulator for protocol testing against users' behavior on a sharded blockchain.
Stars: ✭ 25 (-90.6%)
Mutual labels:  sharding
Azuma
A package that actually syncs your ratelimits across all your clusters on Discord.JS
Stars: ✭ 19 (-92.86%)
Mutual labels:  sharding
avrio-rs
Avrio's core code written in rust.
Stars: ✭ 14 (-94.74%)
Mutual labels:  sharding
practice
Java并发编程与高并发解决方案:http://coding.imooc.com/class/195.html Java开发企业级权限管理系统:http://coding.imooc.com/class/149.html
Stars: ✭ 39 (-85.34%)
Mutual labels:  sharding
scilla-vanilla
No description or website provided.
Stars: ✭ 20 (-92.48%)
Mutual labels:  sharding
ray tutorial
An introductory tutorial about leveraging Ray core features for distributed patterns.
Stars: ✭ 67 (-74.81%)
Mutual labels:  sharding
spring-sharding-mybaits
mybatis3在spring中的分库分表
Stars: ✭ 24 (-90.98%)
Mutual labels:  sharding
Layr
A decentralized (p2p) file storage system built atop Kademlia DHT that enforces data integrity, privacy, and availability through sharding, proofs of retrievability, redundancy, and encryption, with smart-contract powered incentive scheme
Stars: ✭ 90 (-66.17%)
Mutual labels:  sharding
django-horizon
Simple database sharding (horizontal partitioning) library for Django applications.
Stars: ✭ 77 (-71.05%)
Mutual labels:  sharding
suggestions-bot
A Discord bot designed to build better communities by encouraging a positive and constructive relationship between community and staff.
Stars: ✭ 22 (-91.73%)
Mutual labels:  sharding
trillion-graph
A scale demo of Neo4j Fabric spanning up to 1129 machines/shards running a 100TB (LDBC) dataset with 1.2tn nodes and relationships.
Stars: ✭ 73 (-72.56%)
Mutual labels:  sharding
simpleflakes
Fast and test-driven distributed 64-bit ID generation, using pure JavaScript, for Node.js.
Stars: ✭ 32 (-87.97%)
Mutual labels:  sharding
sharedsharder
Shard your discord.js bot across devices!
Stars: ✭ 18 (-93.23%)
Mutual labels:  sharding

Shards

ETS tables on steroids!

Sharding for ETS tables out-of-box.

CI Codecov Hex Version Docs License

Why might we need Sharding/Partitioning for the ETS tables? The main reason is to keep the lock contention under control enabling ETS tables to scale out and support higher levels of concurrency without lock issues; specially write-locks, which most of the cases might cause significant performance degradation.

Therefore, one of the most common and proven strategies to deal with these problems is Sharding or Partitioning; the principle is pretty similar to DHTs.

This is where shards comes in. Shards is an Erlang/Elixir library fully compatible with the ETS API, but it implements sharding or partitioning on top of the ETS tables, completely transparent and out-of-box.

See the getting started guide and the online documentation.

Installation

Erlang

In your rebar.config:

{deps, [
  {shards, "~> 1.0"}
]}.

Elixir

In your mix.exs:

def deps do
  [{:shards, "~> 1.0"}]
end

For more information and examples, see the getting started guide.

Important links

  • Documentation - Hex Docs.

  • Blog Post - Transparent and out-of-box sharding support for ETS tables in Erlang/Elixir.

  • Projects using shards:

    • shards_dist - Distributed version of shards. It was moved to a separate repo since v1.0.0.
    • ExShards – Elixir wrapper for shards; with extra and nicer functions.
    • Nebulex – Distributed Caching framework for Elixir.
    • KVX – Simple Elixir in-memory Key/Value Store using shards (default adapter).
    • Cacherl Distributed Cache using shards.

Testing

$ make test

You can find tests results in _build/test/logs, and coverage in _build/test/cover.

NOTE: shards comes with a helper Makefile, but it is just a simple wrapper on top of rebar3, therefore, you can do everything using rebar3 directly as well (e.g.: rebar3 do ct, cover).

Generating Edoc

$ make docs

NOTE: Once you run the previous command, you will find the generated HTML documentation within doc folder; open doc/index.html.

Contributing

Contributions to shards are very welcome and appreciated!

Use the issue tracker for bug reports or feature requests. Open a pull request when you are ready to contribute.

When submitting a pull request you should not update the CHANGELOG.md, and also make sure you test your changes thoroughly, include unit tests alongside new or changed code.

Before to submit a PR it is highly recommended to run make check before and ensure all checks run successfully.

Copyright and License

Copyright (c) 2016 Carlos Andres Bolaños R.A.

Shards source code is licensed under the MIT License.

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].