Nemah Awad
Nemah Awad

Reputation: 39

Which is better, performance wise, creating one service with multiple contracts or creating a service for each contract?

I want to create a (query) service, that directly operates on a huge database and serve multiple clients or other services.

My question is, what are the best practices? Which is better, performance wise, creating one (query) service with multiple contracts or creating a service for each contract?

Upvotes: 0

Views: 44

Answers (1)

nvoigt
nvoigt

Reputation: 77374

It does not matter. The performance will be the same.

So go with whatever makes more sense for you. It might be easier for coming maintainers if you have one service per interface.

Upvotes: 1

Related Questions