Skip to content

Apply CT+ Approach to JAX-RS Based Applications #1

@schrieveslaach

Description

@schrieveslaach

Unfortunately, the current implementation of CT+ (the tool that recommends energy-efficient Java collection types) does not support dependency injection patterns and therefore it is unsuitable to be used in the context of JAX-RS applications. For example, many micro-services a.k.a. self contained systems in the wild may rely on following class/dependency injection structure.

dia

As CT+ is unable to analyze these patterns, a great potential of energy savings is being left untapped.

Our company creates many HTTP backends that rely on such patterns and based on some internal testing there is a lot of potential to reduce the energy consumption of GET list resources (you find some list resource demonstration here). For example, it could make a difference if the JSON serializer iterates over a FastList or ArrayList to generate JSON.

This issue is a tracking issue for collecting ideas and PRs to provide support for analyzing dependency-injection-based JAX-RS applications through the SonarQube plugin.

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