Raccoon Blog Performance
Join the DZone community and get the full member experience.Join For Free
update: see below for details about the server load.
i just run into this tweet :
that isn’t the first time that we heard this, and it is actually surprising, not only was there no attention to performance given throughout the lifecycle of the project so far, we actually discovered some issues that theoretically should hurt performance.
the secret is that ravendb is really good in optimizing itself based on usage patterns. that came out of the realization that we had to drop people into the pit of success as much as possible. raccoon blog shows that we were able to do just that.
please note that i am testing this with a ravendb server over the internet, to emphasis the actual costs involved .
for example, let us look at the current state of this blog, using ravendb mvc profiler:
just to be clear, in order to actually show the problem, i am running this locally, while the ravendb server is actually the production ravendb server for this blog, in other words, the vast majority of the time is actually network traffic, making queries to ravendb over the internet.
remember that i said that we didn’t pay attention to performance? notice how many remote queries we are making. we have 5 sessions and 7 queries. why is that?
the reason for that is that we are using the session per action approach for scoping the session, and we make heavy use of child actions, each of which is going to get its own session. give me a moment to fix that…
well, that took three minutes, mostly because i wanted to do it right. there are advantages for infrastructure ignorance, and one of them is the ease in which we can make such changes.
the change isn’t drastic, we went from having 5 sessions and 7 requests to 1 session and 6 requests, in the post details view, however, it saved us two requests.
the actual cost of opening a session is essentially zero, so it is more the requests that we are making than anything else. we can improve performance even further by applying additional tactics, such as aggressive caching or batched calls, but we will save those for another post.
update : i was asked about the load, and i hopped off to google analytics and got a few numbers:
that isn’t super high, but it is respectable.
Published at DZone with permission of Oren Eini, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.
How To Integrate Microsoft Team With Cypress Cloud
Boosting Application Performance With MicroStream and Redis Integration
Clear Details on Java Collection ‘Clear()’ API
Integration Testing Tutorial: A Comprehensive Guide With Examples And Best Practices