Capital Markets Adapters 10.3.1 | Apama Capital Markets Adapters Documentation 10.3.1 | Apama Base FIX Adapter | FIX service monitors | Server session | Quote server | Creating contexts at startup and dynamically
 
Creating contexts at startup and dynamically
By enabling MultiContextSupport session parameter, Quote Server processes all Quote requests in multi context mode. By using multi contexts the performance improvements can be seen in terms of throughput and decreased latency because the wait time will be reduced.
Context mapped to symbol can be done at startup or dynamically. At Startup, only user (BA) can map symbol to context by com.apama.mds.MDServerContextRequest event. If the symbol is already mapped to one context, then Quote Server will reject that request and acknowledge to user with error message by com.apama.mds.MDServerContextResponse event.
If Symbol is not mapped to any context while handling subscriptions, then Quote Server sends a request to user(BA) for create a new context by com.apama.mds.CreateContextRequest event and expect response by com.apama.mds.CreateContextResponse event. If the user doesn't respond to request, then the subscription will handle in the main context only.