java - Spring 3: Network Client-Server with custom protocol for runtime service generation -
i looking simplest solution create client-server network architecture using spring 3 framework. architecture woill have many clients , multiple servers. each client can connnect each server. each client can define set of services have generated during runtime server.
communication protocol:
client says hello 1 of 5 servers.
server gather local metadata stored data , send client
client pick of info , send metadata subset server deciding data need later.
server basing on metadata choice, picked client, generates dynamically services made available client supplying him data pointed requested (step 3) config (eg in form serialized json)
client information generated services , use future calls services.
the biggest issue client doesn't know nothing server resources served until receives answer , server has no services since request client.
i considered spring 3:
- http invokers
- jms
- netty (joined spring)
but far tried above it's ether hard provide dynamic service generation requirement or amount of code (netty) big.
i have rejected soap due heavy nature. on other hand rest not bring here far know benefits. way of serving data , require kind of servlet container tomcat uses http. @timmmm 's great , simple answer rest fashion
what after:
- as simple possible
- dynamic generation of services based on client choice
- keep server lightweight i.e. no additional server instance (it nice eliminate tomcat; ts not crucial)
- spring based
what technology recommend?
it quiet hard accomplish task requirement of configuration based service generation during runtime.
i not want base on properties files, services must generated on fly based on client request.
thank in advance answers , tips.
i @ restful architecture. of principals after, including discovery.
spring provides easy integration rest.
Comments
Post a Comment