DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
Building Scalable Real-Time Apps with AstraDB and Vaadin
Register Now

Trending

  • Implementing a Serverless DevOps Pipeline With AWS Lambda and CodePipeline
  • Getting Started With the YugabyteDB Managed REST API
  • File Upload Security and Malware Protection
  • Merge GraphQL Schemas Using Apollo Server and Koa

Trending

  • Implementing a Serverless DevOps Pipeline With AWS Lambda and CodePipeline
  • Getting Started With the YugabyteDB Managed REST API
  • File Upload Security and Malware Protection
  • Merge GraphQL Schemas Using Apollo Server and Koa
  1. DZone
  2. Data Engineering
  3. Databases
  4. What is New in RavenDB 3.0: Simplicity

What is New in RavenDB 3.0: Simplicity

Oren Eini user avatar by
Oren Eini
·
Sep. 21, 14 · Interview
Like (0)
Save
Tweet
Share
2.70K Views

Join the DZone community and get the full member experience.

Join For Free

i’m not sure that there is a better word to describe it. we have a sign in the office, 3 feet by 6 feet, that says: reduce friction . and that is something that we tried very hard to do.

under simplicity we aggregate everything that might aggravate you, and what we did to reduce that.

that include things like reducing the number of files and assemblies we ship. compare the 2.5 output:

image

to the 3.0 output:

image

we did that by removing a lot of dependencies that we could do without, and internalizing a lot of the other stuff.

we went over the command line interface of the tooling we use and upgraded that. for example, restoring via the command line is now split into a restoring a system database (offline operation for the entire server) or restoring a regular database (the server is fully online, and other databases can run during this time).

in secret and without telling anyone, we have also doubled the amount of parallel work that ravendb can do. previously, if you purchased a standard license, you were limited to 6 concurrent index tasks, for example. in ravendb 3.0, the standard license still has 6 cores capacity, but it will allow up to 12 concurrent index tasks. if you have a 32 cores enterprise license, that would mean 64 concurrent indexing tasks, and you can follow the logic from there, i asuume.

we have also dropped the raven.client.embedded assembly. it isn’t necessary. the full functionality is still available, of course, it was just moved to raven.database assembly. that reduce the amount of dlls that you have to work with and manage.

you probably don’t care much, but we have done a lot of refactoring on the internals of ravendb. the documentdatabase class (the core functionality in ravendb) was broken up into many separate classes, and on the client side, we have done much the same to the documentstore class. we have also combined several listeners together, so now you don’t have to deal with extended conversion listeners.

in terms of storage, obviously voron gives us a huge boost, and it is designed to be a zero admin system that self optimize. but we changed things on top of that as well. previously, we were storing the data as bson on disk. that decision had a lot to do with serialization costs and the size on disk. however, that created issues when we had to deal with the storage at a low level. so now ravendb stores the data in text json format all the way through. and yes, it will seamlessly convert from bson to json when you update documents, you don’t have to do anything to get it working. we run extensive performance testing here, and it turned out that we were able to reduce the cost of writing by moving to a textual format.

another small annoyance with ravendb was the use of in memory databases. those are usually used for testing, but we also have a number of clients that use those for production data, usually as a high throughput first responder, with replication to / from backend systems to ensure durability. previously, you had to manually tell ravendb that it shouldn’t tear down those database when they went idle. now we won’t tear down an in memory database even if it didn’t do anything for a long while.

another common issues was people adding / removing bundles on the fly. this isn’t supported, and it can cause issues because it usually works, but not always. we made it so the process for doing that is a bit more involved, and require an actual acknowledgment that you are doing something that might be unsafe.

users sometimes have proxies / man in the middle service that manipulate the http headers. a common example of that is new relic. that can cause problems sometimes, since ravendb use http headers to pass the document metadata, that caused issues. by now, we have pretty much filtered out all the common stuff, but since that always required us to make a new release, that had a prohibitive cost of the users. instead, we now allow you to customize the list of headers that the server will ignore on the fly.

we did a lot for indexes in 3.0, but one of the changes is both simple and meaningful. we gave you the ability to ask if my current index definition matches the one on the server? that is important during deployments, because you can check if an index is up to date or not, and then decide if you need to do an online index rebuild, or schedule this for a later time, with less load, or just move on because everything is the same.

in ravendb 3.0, we have deprecated the attachments, they still work (but will be removed in the next major release), but you are expected to use ravenfs for binary storage. ravendb now comes with a migration tool to move all attachments from a ravendb database to a ravenfs file system.

as i said, those are small things, none of them would rise to the level of major feature on its own. in aggregate (and i mentioned just the top from a very big list) they represent a significant reduction in the amount of friction that you have to deal with when using ravendb.

Database

Published at DZone with permission of Oren Eini, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Trending

  • Implementing a Serverless DevOps Pipeline With AWS Lambda and CodePipeline
  • Getting Started With the YugabyteDB Managed REST API
  • File Upload Security and Malware Protection
  • Merge GraphQL Schemas Using Apollo Server and Koa

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com

Let's be friends: