I have a linux machine, on which a ruby web server and a c++ process are hosted. Both the components work on the same database.
In order to avoid repeated database requests, I want to make and maintain an object model.
Is it possible to make one object model and share it between ruby server and c++ process. If yes what can be the pros and cons?