Skip to content

Make fdk-java runtime modular #142

Open

Description

@panga

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.

Activity

  1. zootalures commented on Sep 18, 2018

    @zootalures
    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.

  2. zootalures commented on Oct 15, 2018

    @zootalures
    Member

    relates #98

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions