Code Monkey home page Code Monkey logo

Comments (8)

peschkaj avatar peschkaj commented on July 18, 2024

I believe the ruby client also has an in memory back end. Of course, this
reminds me of my bad joke that all you need to write your own NoSQL
database is a hash table and a network socket.


Jeremiah Peschka
Founder, Brent Ozar Unlimited

On Fri, Nov 16, 2012 at 5:00 AM, Ethan J. Brown [email protected]:

Background

  • Using CorrugatedIron / Riak 1.2 on a new project.
  • Developing on Windows, with local Ubuntu VMs hosting Riak
  • Using pretty standard fare repository interfaces along with
    dependency injection.
  • As we go, we've ended up writing a number of in-memory variants of
    these repo interfaces to speed up unit tests, provide simulated data, etc,
    etc. Basically for any situation where we're testing something business-y
    and not persistence-y.

But I'm starting to think that there's a lot of ceremony that goes along
with building these in-memory repos, and that it would be nice to push this
responsibility off to CorrugatedIron.

Since the Riak datamodel is so simple, it can be pretty closely simulated
with a ConcurrentDictionary<string, object>.

I haven't looked too closely at your code in a while, but I think that
this would involve

  • Implementing some new classes on top of the standard client
    interfaces
  • Providing a config switch that denotes you're running on a fake Riak.
  • Some combination of the two

I think the RavenDB client has a feature like that if I recall correctly.

Thoughts?


Reply to this email directly or view it on GitHubhttps://github.com//issues/53.

from riak-dotnet-client.

OJ avatar OJ commented on July 18, 2024

It's something that we'll keep on the "To look at" list. Not sure when we'll get to it as the focus is currently on v1.0 features.

Simulating Riak isn't necessarily as simple as having a ConcurrentDictionary<string, object> given that we need to also emulate Riak search, 2i, links and map/reduce. Emulating the simple KV part is a no-brainer, but if you're looking to mock out Riak completely then I think there's more work here than meets the eye.

from riak-dotnet-client.

Iristyle avatar Iristyle commented on July 18, 2024

2i and links aren't too bad... search and m/r are clearly a little more involved. Probably something I would punt on until there was a greater demand.

But... since this is something that would potentially save my team a ton of time (we're using ElasticSearch so don't care too much about search and m/r is of little use as well), how do you feel on pulls that implement this?

I'm not making any promises on having the time to do this, just putting out a feeler...

from riak-dotnet-client.

peschkaj avatar peschkaj commented on July 18, 2024

If you're willing to write it, we're willing to take a look at a pull
request.


Jeremiah Peschka, Managing Director, Brent Ozar PLF, LLC
Microsoft SQL Server MVP

On Nov 17, 2012, at 1:33 PM, "Ethan J. Brown" [email protected]
wrote:

2i and links aren't too bad... search and m/r are clearly a little more
involved. Probably something I would punt on until there was a greater
demand.

But... since this is something that would potentially save my team a ton of
time (we're using ElasticSearch so don't care too much about search and m/r
is of little use as well), how do you feel on pulls that implement this?

I'm not making any promises on having the time to do this, just putting out
a feeler...


Reply to this email directly or view it on
GitHubhttps://github.com//issues/53#issuecomment-10479184.

from riak-dotnet-client.

OJ avatar OJ commented on July 18, 2024

+1. Certainly willing to take a look at it.

from riak-dotnet-client.

alexmoore avatar alexmoore commented on July 18, 2024

Hi @Iristyle, did you ever make any progress on this? We're in the process of cleaning out old issues.

Thanks!

from riak-dotnet-client.

Iristyle avatar Iristyle commented on July 18, 2024

Unfortunately I'm not able to use Riak / CorrugatedIron / ElasticSearch on a daily basis anymore (haven't been for nearly 2 years now).

from riak-dotnet-client.

lukebakken avatar lukebakken commented on July 18, 2024

Thanks you for the update. At this point we'll close the request but may revisit the idea in the future.

from riak-dotnet-client.

Related Issues (20)

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.