Showing posts with label NoSQL. Show all posts
Showing posts with label NoSQL. Show all posts

Tuesday, April 24, 2012

Data and Persistence

For a while, I was fairly sold on JPA/ORM technologies.  I thought great, I can work with Java Objects and they will magically be stored in the database... Well sort of and that works great for a lot of cases, especially where there is only one database involved or even one type of database involved like say a Relational Database.  They can really save a developer a lot of time and frustration.  But what happens when you want to start making use of some of the non relational databases?  NoSQL (Not-Only SQL) has been driving the industry to consider alternate ways of storing information, not to mention that there may be Cloud based options to store data outside of NoSQL and traditional databases.

To add insult to injury, some of the ORM frameworks (Hibernate?) have become over-burdensome and bloated.  It has been said that all frameworks have holes in them and ORM is no exception. I trend towards light-weight solutions that suit my needs, sometimes ORM is the right answer.  The push to NoSQL really comes from an operational need to perform at "Web-Scale" that is companies like Facebook, Google, Amazon, Twitter to name a few.  These companies deal with a tremendous amount of traffic that outpaced the relational database strategies they were using. Even a number of smaller start-up companies deal with high traffic volumes and large amounts of data.

It makes sense that when developing a solution to consider using NoSQL for certain portions of your system.  Even with the industry hype about the latest NoSQL products, there seems to be a shift back to improving SQL to meet high traffic demands.  It also seems that the industry is starting to figure out the best fit for specific database systems, realizing that SQL is not always the answer but neither is NoSQL we now live in a Polyglot world of data persistence.

Some advice, make sure you don't use a NoSQL database without researching and understanding where it excels and where it is lacking.  Using something because it works great for some project and you want it too isn't a good enough reason.  Look at your requirements, your team's abilities, and where the application is headed in the future to make a good decision about what tools you will use to persist your data.  As with any technology, try not to just jump right in with a new product, try to ease it in through smaller projects to gain experience and understanding of it before migrating larger systems.