OpenFeign / OpenFeign/feign

Add support for Ahead-of-Time (AOT) compilation

Open
#1,082 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feign-12 proposal
Dominant language
Java
Stars
9.8k
Forks
1.9k
Avg merge
1d 2h
Merged PRs (30d)
41

Description

Will be great if Retrofit will generate interfaces implementation at compile time. Something like Micronaut does.

https://github.com/micronaut-projects/micronaut-core
Micronaut uses Ahead of Time (AOT) compilation to pre-compute your applications requirements at compile time. The result of this is significantly lower memory requirements, faster startup time, and reflection free framework infrastructure.

This will also make possible to better integration with GraalVM.

Another great example is Micronaut Data.icronaut Data is a database access toolkit that uses Ahead of Time (AoT) compilation to pre-compute queries for repository interfaces that are then executed by a thin, lightweight runtime layer.
https://github.com/micronaut-projects/micronaut-data
https://micronaut-projects.github.io/micronaut-data/latest/guide/

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No Feign files, tests, or entry points are identified in the issue. Start by reviewing Feign's existing Java interface implementation approach and the linked Micronaut and Micronaut Data AOT designs; done would require an agreed scope and compile-time generated implementations with the stated GraalVM and reflection-free goals.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.