Reputation: 363
this question is more about architecture than syntax. I am building a WebAPI project in C# and I am using NEo4j, not SQL. It seems to me I will be bypassing Entity Framework and any ORM and going directly to the DB (Is this assumption wrong?) I am using the Neo4j library here. I anticipate a very high volume of traffic to the DB a vast majority of the traffic will be writes. Where is the best place to create my connection object within the MVC framework so I can limit the number of times I call client.connect()? Thanks!
Upvotes: 1
Views: 848
Reputation: 363
I ultimately decided to use a helper class for GET web service calls and a cache between the Web Services and the DB. For POST web service calls I have implemented a Message queue and separate "DB Loader" service. The lack of ORM has not had an effect on the project and using asynchronous method calls to the helper class and queue seem to have kept the performance at acceptable levels.
Upvotes: 1