My scenario is I prefer to stay in a relational database storage system like SQL Server because I would need to work with complex queries.
And then, because some calculations would be better to be done overtime and just store the results into something like Redis or maybe a more traditional NoSQL solution.
That's the point where I thought: and what happened with the second-level cache on NHibernate?.
I did a very small research and I found that there's a Redis second-level cache provider, and now I got "confused".
I mean, if I use NHibernate's second-level cache most of object access should be very fast as it should be no database roundtrip, thus most accessed objects would be retrieved from the in-memory Redis store.
Why I'm considering this instead of just using Redis directly? Because I need actual atomic transactions within my solution's domains.
Ok, the question?
Is relying on NHibernate's second-level cache Redis provider a good idea in order to get the best of relational and schema-less worlds?
What's your advice?