Closed pmohankumar closed 8 years ago
PLEASE DONT MERGE YET. This is a backward incompatible change and hence will have to upgrade version to 3.0.0. But there might be other fixes required as team is investigating another issue around locking in spring/trooper for event publishing flow.
Looks Good
LGTM
TaskContext and TaskHandler contracts require input parameters to be a Map < String, String >. So for applications running phantom in embedded mode with a HttpTaskHandler are forced to serialize request params like Headers into a String (which itself is generally a Map < String, String >) and then de-serialize it inside the task handler to read each header key-value and add them to actual http request. For high qps services with decent number of headers, this is becoming a bottle-neck. Applications should be able to pass URI, Method, Headers etc as they are (strings and maps) instead of converting all of them to string. Hence changing the request params to Map < String, Object >