Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Couchbase devs to make your library official (or at least link to it in the documentation/blog) #1

Open
gottlike opened this issue Mar 17, 2017 · 6 comments

Comments

@gottlike
Copy link

First off, thank you very much for putting in the effort of developing a proper Ruby client for Couchbase! Your client is what saved Couchbase for me.

Now, I guess there are a lot of people who use Ruby with the old Couchbase Ruby client and don't even know about your work. A while ago I started a thread on the forums where many people are complaining about Couchbase's lack of Ruby support. I think it would help a lot of people if Couchbase would link to your client in the official docs.. maybe you/we can get them to do that somehow?

@stakach
Copy link
Member

stakach commented Mar 17, 2017

I'm for it - just need buy in from @avsej
There is also https://github.com/acaprojects/couchbase-orm which is the ActiveModel implementation

@avsej
Copy link

avsej commented Mar 17, 2017

Currently we don't have capacity to maintain ruby client, so it is great that @stakach took this and continue this work. The more people will use Couchbase with ruby the better. Thank you.

@gottlike
Copy link
Author

@avsej , can you support us in getting this message to more people? Maybe the Ruby SDK section can be added to the documentation again, now linking to this client instead of the old one. If that isn't possible, maybe a blog post - like you did for the Ruby 2.0 client - would also help.

Thank you!

@FilipVozar
Copy link

Hello, is this library production ready? Currently we are using https://github.com/couchbase/couchbase-ruby-client with https://github.com/couchbase/couchbase-ruby-model in a Rails/Sidekiq application, how does it compare to that? We are thinking about switching to this library, since the "official" client is not maintained anymore (also there are some issues with maintaining connection to the Couchbase cluster, which we haven't had the time to dig deeper into yet, and couchbase-ruby-model feels slow compared to using "raw" connection).

@stakach
Copy link
Member

stakach commented Mar 17, 2017

We started using it in production this week - so far so good!
If you want to compare some of the models of the application:

Also built a doorkeeper ORM for it: https://github.com/acaprojects/doorkeeper-couchbase too.

Currently in the process of migrating our other Couchbase app which uses sidekiq, it's quite a simple migration.
The main differences are in the ActiveModel we built:

  • no more map-reduce files (either defined inline or auto-generated)
  • much more compatible with ActiveModel (check out the spec for details)
    • delete and destroy are swapped from the couchbase-ruby-model gem

Lots of other improvements and security fixes too - for instance in couchbase-ruby-model you could do something like

rec = SomeRecord.new.save
loaded = TotallyUnrelatedClass.find rec.id
loaded.save # <=== SomeRecord data lost!

Which means a malicious actor could trick API's into corrupting data by passing unrelated ids to controllers etc

@stakach
Copy link
Member

stakach commented Mar 17, 2017

@avsej I'm happy to transfer the repos to the couchbase organisation and continue maintaining the client if that would help having ruby being re-added to the official couchbase docs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants