Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make fdk-java runtime modular #142

Open
panga opened this issue Jun 23, 2018 · 2 comments
Open

Make fdk-java runtime modular #142

panga opened this issue Jun 23, 2018 · 2 comments

Comments

@panga
Copy link

panga commented Jun 23, 2018

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.

@zootalures
Copy link
Member

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
Copy link
Member

relates #98

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants