Blog

Luis Majano

August 06, 2013

Spread the word


Share your thoughts

 

Today we are releasing an open source Couchbase provider for our CacheBox library whether you use it standalone or within a ColdBox application.  We have been working with Couchbase NoSQL server and have been absolutely loving it.  This provider will allow you to leverage Couchbase Server from any CFML application that leverages CacheBox for your caching needs.  We have created two providers in our initial release: 1) For standalone Couchbase integration in any CFML application, 2) For ColdBox applications.  The latter will allow you to hook up Couchbase to your ColdBox applications and even allow you to use it for event and view caching alongside data caching.  We also take care of serializations and Java inter-operability for Adobe ColdFusion and Railo CFML as well.  You can also leverage the Couchbase ColdBox provider for Flash RAM capabilities as well.  As with anything we do here at Ortus, this provider is fully documented and professionally supported.

About Provider

Caching is an important layer in today's applications that require high availability in clustered and standalone environments alike.  Caching demands require fast performance, lots of storage, and the ability to scale horizontally so your cache infrastructure can grow with your needs.  We take caching seriously which is why we've built tools like CacheBoxwhich is not only a caching engine, but an aggregator and API for other cache systems.  In-process caches, which run on the JVM alongside your application and share the same heap space, are convenient and easy to set up, but they have many limitations when it comes to scalability and redundancy. 

This is why we've spent time learning about other out-of-process and distributed caching strategies and have been working with Couchbase for a while now.  Even though, Couchbase is in itself a NoSQL Database, it is also an amalgamation of CouchDB and Memcached on steroids with clustering, replication and distributed capabilities.

Couchbase Server

 

Couchbase is a combination of CouchDB's NoSQL engine with over-the-wire compatibility with the Memcached protocol-- a standard in the caching world.  Couchbase can be used as an indexable, queryable JSON  document store or a simple key/value store.  Main benefits of Couchbase server are:

  • Clustered - You can scale out a Couchbase cluster as large as you need it.  There’s even cross data center replication (XDCR) for multiple, geo-located clusters and disastery recovery.
  • Some solutions are RAM-only or Disk-only, but Couchbase uses a combination of RAM and Disk storage for its data.
  • Data Replication and Auto-Failover: This is an amazing feature for high availability and redundancy that comes out of the box with Couchbase.
  • Since Couchbase implements the Memcached protocol, it can be a drop-in replacement for Memcached to allow for things like larger document sizes.
  • Unlike Memcached, Couchbase Server gives you any number of named storage locations called vBuckets; each of which have their own storage, configurations, document views and statistics.
  • It has a really nice web-based real-time interface for managing it.  Very nice for a free open source offering!
  • It’s fast-- REALLY fast.  Every operation is asynchronous and setting a simple value into Couchbase can be as fast as 25 microseconds. That’s .000025 seconds!
  • They have client SDK libraries available for Java, .Net, PHP, Ruby, C, Python and others so it’s very accessible from any project.  The Java SDK is what we use to connect to Couchbase via CFML. (They also have experimental  libraries for node.js and go)
  • It’s professionally backed, just like ColdBox and ContentBox so professional licenses are available that come with support programs.

Resources

Add Your Comment

(3)

Dec 17, 2018 11:04:01 UTC

by Mark Skelton

The Download Provider link in the resources section is broken.

Dec 17, 2018 11:49:18 UTC

by Brad Wood

Thanks for the note Mark. The new download URL for the CacheBox provider is: https://www.forgebox.io/view/couchbase-cachebox-provider Disregard the first version of this comment you may have seen in your E-mail. I thought you were asking about the Couchbase Lucee extension at first!

May 10, 2021 19:46:25 UTC

by Mary Jo Sminkey

Just a correction from this original blog post to the situation today, that it appears the provider is no longer available in a standalone version. We are needing to upgrade our wirebox/cachebox/couchbase provider setup on CF 11 for migration to newer CF servers, and this portion seems to be the only one that is not still available in a standalone component, only in a ColdBox module. Working to try and work out how to do a standalone version but it's definitely not a simple matter to convert it over.

Recent Entries

BoxLang 1.0.0 RC1 Launched

BoxLang 1.0.0 RC1 Launched

After nearly a year of relentless iteration, rigorous testing, blood, sweat, lots of praying, tears, and over 1,000 resolved tickets, we proudly announce the first Release Candidate (RC1) of BoxLang! With 27 beta versions behind us, we are now on the final stretch toward the official 1.0 release.

Luis Majano
Luis Majano
February 18, 2025
Exploring BoxLang: A Modern Scripting Language for the JVM!

Exploring BoxLang: A Modern Scripting Language for the JVM!

The amazing CFML community leader Ray Camden recently shared his thoughts on BoxLang, a dynamic scripting language that runs on the Java Virtual Machine (JVM). BoxLang is lightweight (only 6 MB) and doesn’t require Java knowledge, making it accessible to developers from all backgrounds. Whether you're building CLI scriptsweb applications, or experimenting with serverless architecture, BoxLang has you covered.

Maria Jose Herrera
Maria Jose Herrera
February 14, 2025
Get a Free BoxLang+ License with Your ITB 2025 Ticket!

Get a Free BoxLang+ License with Your ITB 2025 Ticket!

At Ortus Solutions, we are dedicated to delivering the best experience for our Into the Box attendees. This year’s event will be an exciting opportunity to explore BoxLang and modern CFML development, and we want to ensure that attending in person is even more rewarding.

Maria Jose Herrera
Maria Jose Herrera
February 07, 2025