Developing plug-ins for Membase
Thu, 12/22/2011 - 05:33
Hi all,
Sorry, if something was posted earlier. I tried to search the forums for anything about plug-ins or extensions, but couldn't find anything.
Anyway, in an application, I cache some objects when it starts up. I do that by loading them from (a relational) database, and then sending them to my Membase server. In order to make that more efficient, I thought maybe I could eliminate the HTTP traffic, if I could send a single request to the Membase server, which would load the objects from the database itself, and them store them.
Is there any way to do this?
Thanks in advance for all replies,
Haris
First off, I'm curious what your use case is.
Second, you can definitely do this, but to me it would be more of a plugin for your RDBMS. What you would want to do is implement the tap protocol in your plugin and then you would be able to stream data from your RDBMS to Membase. I recently wrote a plugin for Hadoop that does exactly this.
Below is a link to out TAP documentation. Take a look at it and let me know if you have any questions.
http://www.couchbase.org/wiki/display/membase/TAP+Protocol