Reputation: 1372
I am facing the following scenario and would appreciate some advice on how best to iterate forward:
My team is responsible for a Web Service written on ServiceStack v3. This service is responsible for aggregating data from several other v3 web services for use in a SPA.
We are running into a situation where we are limited by the implementation of a downstream service - this particular service abstracts away data access and queries that return large result sets occasionally timeout.
We would like to rewrite this service to add pagination. The best solution (for us) would be to leverage AutoQuery from ServiceStack v4. However this would require upstream code being able to reference ServiceStack packages in 2 versions (is this possible?). We could also add pagination to the existing service, but it uses an internal data framework that is not that easy to change and we have a high chance of breaking.
Any ideas?
Upvotes: 1
Views: 50
Reputation: 11661
Yes, you can load in 2 versions of a dll inside your application. No, not while developing (only runtime) but I'm pretty sure this will lead to big problems in code execution (it wont be able to find the right class-version run-time).
Your question is also answered here: Using multiple versions of the same DLL
A better solution would be is to split your application into a v4 and v3 part using app domains also talked about in this question.
your original problem is you have old v3 services where you want to add pagination for performance issues?
I think you'd do good researching some of these options. I think your case there is not one perfect solution, there is only pros and cons.
To you to decide which risks to take.
Upvotes: 1