web services - Is it possible to dynamically change the URI that an asp.net core process is listening on? -


i'd have following architecture:

  • a factory web service running time under general uri, /service.
  • a set of specific self-hosted application services, running under specific uri, /service/appa/db1, /service/appa/db2, /service/appb/. application services facades on top of legacy applications, , each application-database pair must in separate process. cannot merge them. there may thousands of combinations of these separate services, don't want kick them off. i'd kick them off on demand.

now have client ask factory kick off needed service, , connect it, doesn't work cleanly in load-balanced environment.

what factory service listen requests, , automatically kick off application services needed , stop listening portion of uri newly kicked off service listening to.

for example, client wants call "http://hostname/service/productapp/myproductdb/products/get/byname"

the first call go factory service. kick off application service "productapp-myproductdb" , redirect initial call name url, , stop listening on uri "/service/productapp/myproductdb".

any subsequent calls go directly "productapp-myproductdb" service, listening on "/service/productapp/myproductdb" uri.

i don't want redirect calls factory service application service. want client able connect application service directly after initial request.

  1. is possible do?
  2. if possible, how can in asp.net core?

thanks, alex


Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

mapreduce - Resource manager does not transit to active state from standby -

serialization - Convert Any type in scala to Array[Byte] and back -