World's worst designed application and maybe in-memory databases
Hi everyone. I'm working on this horrible system. It's huge. And it's an unwieldy mixture of C++ and C#. It's currently passing data through the database. But I'd like to do this in memory. I think .net has a built-in in-memory database I could use. But I'm not sure what it's called or if it's only available past a certain version of the framework. If not, almost any kind of in-memory scratch pad could work.
It goes C# -> managed C++ -> unmanaged C++ -> ugly things -> C#, then back. And the code is unbelievably convoluted and difficult to follow. So I can't easily pass data structures through as a parameter. The current code uses a database to do this as I said. But I'd rather have an in-memory database to achieve the same thing... insert it in the C# at the beginning, then take it out in the C# at the end. Something like the Session object in ASP.Net could work out great. Does anything like this exist in the .net framework where I could put some data in it that would allow me to get back the same data on the other side, but without having to pass a specific reference to an object through the mess?
I know I could use something like Redis. But I'd like something that I can implement in only a few lines of code without adding much to the project. So something that's already part of the .net framework would be ideal.
0 comments:
Post a Comment