fdk-java icon indicating copy to clipboard operation
fdk-java copied to clipboard

Make fdk-java runtime modular

Open panga opened this issue 7 years ago • 2 comments

Currently, a simple Java Hello world function has 2.2mb of jars in the classpath in which almost 2mb are for optional thirdparty libraries.

1.5mb for Jackson Databind 316kb for Commons HTTP core.

Jackson Databind can be completely removed if we use JSON-B standard API in #98, so the user can choose to add the JSON-B implementation of choise if he needs to support JSON coersion or JSON events format.

Commons HTTP can be optional if user needs to support func.yaml http format. I think in future this format should be deprecated in favor of Default, JSON & Cloud Events

This improvement also need #133 to be handled.

panga avatar Jun 23 '18 17:06 panga

Ack I'm making Flow a separate module would like to do the same with Jackson later - that would remove the need for JSON in a simple function.

The Apache commons HTTP dependency is still required for http (and for forthcoming UDS/http protocol) so the best we could do there is shade it.

zootalures avatar Sep 18 '18 11:09 zootalures

relates #98

zootalures avatar Oct 15 '18 13:10 zootalures