I have an in-memory list of objects (really just strings) I utilize in a .net web application. It is about 10 megs worth of data, so I just keep it in ram and don't mess with a database etc.
However, now I need multiple web apps to access this same data. First thought was to add a web api on top of this and give access to the additional apps through the api. This should be better than having each app keep the same 10 megs of data loaded in ram.
But this made me wonder if there's a more performant way to do this in .net on a single server- allow multiple web apps to access the same in-memory data, without the overhead of a web api, and without resorting to just having each request hit a database. I realize the performance benefits may not make it worthwhile, but am just curious if such a thing is possible.