Git Product home page Git Product logo

ravendbsharding's Introduction

RavenDbSharding

This sample project demonstrates sharding technique with RavenDB. It contains source code and three RavenDB servers (binaries only) which store data in-memory. Every restart of the servers clears the databases.

This sample uses RavenDB servers from the build 800 which is available from http://builds.hibernatingrhinos.com/builds/RavenDB

Config file of every server has been modified to use specific IP (127.0.0.1), ports (8081-8083) and hold data in-memory. Also anonymous user has ALL access rights.


To see it working you can

  1. Start RavenDB servers, you can do so by running a cmd file \tools\RavenDB-Build-800\Just-Servers\Start.cmd This shall open three console application, one for each RavenDB server

  2. [a] Either open solution in Visual Studio 2010 and run the project
    or [b] Run the binary client directly from \bin\RavenDbSharding.exe

  3. Take a look at the RavenDB servers to see which request goes to which server. Users are stored on the following shards: Users with id 1 - 10 are stored in shard "user_1_10" Users with id 11 - 20 are stored in shard "user_10_20" Users with id 21 - 30 are stored in shard "user_20_30"

For more details see my post: http://blog4work.com/post/2012/04/20/Sharding-with-RavenDB.aspx

ravendbsharding's People

Contributors

o-mdr avatar

Watchers

 avatar  avatar

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.