Objectmappers are heavy according to what I have read. Instead it is encouraged to use ObjectReader and ObjectWriter as lightweight alternatives.
For now, we suggest to create new APIClient per thread as its not thread safe. This will also result in creation of new object mapper per invocation.
ref:


For some cases, objectmapper is not configurable, for that we can allow setting mapper in apiclient via setters.
Can we add this improvement in future?
Objectmappers are heavy according to what I have read. Instead it is encouraged to use ObjectReader and ObjectWriter as lightweight alternatives.
For now, we suggest to create new APIClient per thread as its not thread safe. This will also result in creation of new object mapper per invocation.
ref:
For some cases, objectmapper is not configurable, for that we can allow setting mapper in apiclient via setters.
Can we add this improvement in future?