https://github.com/kumuluz/kumuluzee
Lightweight open-source framework for developing microservices using standard Java EE technologies and migrating Java EE to cloud-native architecture.
https://github.com/kumuluz/kumuluzee
cloud-native cloud-native-architectures cloud-native-microservices jakartaee java javaee kumuluzee microprofile microservice-framework microservices uberjar
Last synced: 6 days ago
JSON representation
Lightweight open-source framework for developing microservices using standard Java EE technologies and migrating Java EE to cloud-native architecture.
- Host: GitHub
- URL: https://github.com/kumuluz/kumuluzee
- Owner: kumuluz
- License: mit
- Created: 2015-05-02T09:18:40.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2024-01-17T08:49:25.000Z (about 1 year ago)
- Last Synced: 2025-04-01T15:17:20.585Z (13 days ago)
- Topics: cloud-native, cloud-native-architectures, cloud-native-microservices, jakartaee, java, javaee, kumuluzee, microprofile, microservice-framework, microservices, uberjar
- Language: Java
- Homepage: https://ee.kumuluz.com
- Size: 1.87 MB
- Stars: 291
- Watchers: 37
- Forks: 70
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- awesome-java - KumuluzEE
README
# KumuluzEE
> Lightweight open-source framework for developing microservices using standard Java/JakartaEE technologies, extending them with Node.js, Go and other languages, and migrating to cloud-native architecture.
KumuluzEE is a lightweight framework for developing microservices using standard Java/JakartaEE technologies, extending them with Node.js, Go and other languages, and migrating existing applications to microservices and cloud-native architecture. KumuluzEE packages microservices as standalone JARs. KumuluzEE microservices are lightweight and optimized for size and start-up time.
They fit perfectly with Docker containers. KumuluzEE microservices are fully compatible with Kubernetes and enable Kubernetes-native development. KumuluzEE will also provide support for Serverless Functions on Azure, AWS and Google.KumuluzEE also provides extensions for developing common patterns in cloud-native architectures, including configuration, logging, discovery, fault tolerance with circuit-breakers, metrics, security, event streaming and more.
KumuluzEE has been designed to use the standard Java/JakartaEE technologies and APIs with optional extensions for easier development of cloud-native microservices. Therefore, it is particularly suitable for existing enterprise Java developers, who would like to leverage their skills, but progressively move from monolithic to microservice design patterns.
KumuluzEE provides full support for **Java** latest versions (check each release for specific information). In addition to Java, KumuluzEE supports several programming languages, including **Node.js** and **Go**. Support for additional languages will be added soon. For these languages, KumuluzEE also provides support for service configuration and discovery.
KumuluzEE is Eclipse MicroProfile compliant and provides support for MicroProfile 1.0, 1.1, 1.2, 1.3, 1.4, 2.0, 2.1, 3.0, 3.1, 3.2 and 3.3. Support for 4.x and 5.x is coming soon. KumuluzEE provides support for all MicroProfile specifications, including MicroProfile Config, MicroProfile Health, MicroProfile Fault Tolerance, MicroProfile Metrics, MicroProfile JWT Authentication, MicroProfile Rest Client, MicroProfile OpenAPI and MicroProfile Open Tracing APIs.
## Getting started
If you already know how to use Java/JakartaEE, then you already know how to use KumuluzEE. It is simple and straightforward.
See the [getting started](https://github.com/kumuluz/KumuluzEE/wiki/Getting-started) wiki section to create your first light-weight standalone Java microservice in 5 minutes.
Read [tutorials](https://ee.kumuluz.com/tutorials/) at our home page.
Refer to [samples](https://github.com/kumuluz/kumuluzee-samples) for more examples.
## Features
Primary features:
- Lightweight, cloud-native Java microservices with full support for Docker, Kubernetes and Serverless (coming soon).
- Support for all major cloud-native patterns, minimal footprint, quick start-up time, perfect for scaling in the cloud.
- No need for a traditional application server. Run your app anywhere Java runs as well as in PaaS
and Docker-like environments.
- Allows you to develop microservices using standard Java technologies and extend them with Node.js, Go and other languages.
- Allows you to gradually migrate existing Java applications to microservices and cloud-native architecture.
- Complete control over what Java/JakartaEE components and its implementations are included. Only include what you need and make your app lightweight.
- Minimal to no configuration settings up the base server. Develop like any other Java application.
- Quick startup time, low resource consumption and stateless scalability accelerates development.
- Extend your microservices with common cloud-native patterns, such as config, discovery, logging, fault tolerance, circuit-breakers, etc. KumuluzEE provides all the building blocks.KumuluzEE provides support for various Java/JakartaEE APIs and components. The goal is to support as many Java components as possible (contributions welcome).
## Java/JavaEE/JakartaEE components
Currently the following components are supported with more being added over time:
- Servlet (Jetty)
- CDI (RI Weld)
- JAX-RS (RI Jersey)
- JSON-P (RI JSONP)
- JSON-B (RI Yasson)
- JSP (Jetty Apache Jasper)
- JPA (RI EclipseLink)
- JPA (RI Hibernate)
- EL (RI UEL)
- JAX-WS (RI Metro)
- JAX-WS (Apache CXF)
- JSF (RI Mojarra)
- WebSocket (Jetty)
- Bean Validation (RI Hibernate validator)
- JTA (Narayana)
- Java Mail (RI JavaMail)
Please check each specific KumuluzEE version for specific versions of these components.## Additional features
KumuluzEE provides additional features, which are described on the [project Wiki]( https://github.com/kumuluz/kumuluzee/wiki), particularly:
- [Configuration framework](https://github.com/kumuluz/kumuluzee/wiki/Configuration) for easy and efficient configuration of microservices from various sources, such as environment variables, configuration files (yaml), properties, etc.
- [TLS/SSL support](https://github.com/kumuluz/kumuluzee/wiki/TLS-SSL-support) for configuring TLS/SSL, including support for **HTTP/2**.KumuluzEE also provides support for [**Uber JARs**](https://github.com/kumuluz/kumuluzee/wiki/Uber-JAR-support). With the KumuluzEE Maven plugin, you can pack and run each microservice as a single, self-contained Uber-JAR. Details are described later in this document.
## KumuluzEE projects
In addition to the standard Java EE components, KumuluzEE also comes with several projects that complement and extend its functionality. The projects follow the same modular concept as the Java components in which you can chose if you want to use it as well as the underlying implementation of the project. Most projects are geared towards creating cloud-native microservices including configuration, logging, discovery, fault tolerance including circuit-breakers, metrics, security, event streaming and more. Projects also extend KumuluzEE with technologies, such as Ethereum for blockchain microservices, gRPC, GraphQL, and others.
The following projects are available with more planned soon:- [KumuluzEE Config](https://github.com/kumuluz/kumuluzee/wiki/Configuration) (File and environment variables)
- [KumuluzEE Config with config server](https://github.com/kumuluz/kumuluzee-config) (Config server etcd/Consul)
- [KumuluzEE REST](https://github.com/kumuluz/kumuluzee-rest) (For implementation of common, advanced and flexible REST API functionalities and patterns. Includes support for exposing JPA entities through REST)
- [KumuluzEE Logs](https://github.com/kumuluz/kumuluzee-logs) (For advanced microservice framework for logging)
- [KumuluzEE Discovery](https://github.com/kumuluz/kumuluzee-discovery) (For dynamic service discovery (etcd or Consul). Fully compatible with Kubernetes)
- [KumuluzEE Metrics](https://github.com/kumuluz/kumuluzee-metrics) (For easy collection and reporting of performance metrics)
- [KumuluzEE Security](https://github.com/kumuluz/kumuluzee-security) (For easy integration with OAuth2/OpenID identity and access management providers)
- [KumuluzEE Health](https://github.com/kumuluz/kumuluzee-health) (For implementing health checks and exposing microservice health information)
- [KumuluzEE Fault Tolerance](https://github.com/kumuluz/kumuluzee-fault-tolerance) (For implementing fault tolerance patterns with microservices including circuit breakers and decoupling microservices)
- [KumuluzEE Event Streaming](https://github.com/kumuluz/kumuluzee-streaming) (For event streaming support using Apache Kafka)
- [KumuluzEE Reactive](https://github.com/kumuluz/kumuluzee-reactive) (For developing reactive microservices and integration with reactive streams (Vert.x and similar))
- [KumuluzEE CORS](https://github.com/kumuluz/kumuluzee-cors) (For Cross-Origin Resource Sharing (CORS) support)
- [KumuluzEE Swagger](https://github.com/kumuluz/kumuluzee-swagger) (For Swagger (OpenAPI 2) support and visualization)
- [KumuluzEE OpenAPI](https://github.com/kumuluz/kumuluzee-openapi) (For OpenAPI 3 support, interface generation and visualization)
- [KumuluzEE Testing](https://github.com/kumuluz/kumuluzee-testing) (Tools and utilities for testing KumuluzEE microservices)
- [KumuluzEE gRPC](https://github.com/kumuluz/kumuluzee-grpc) (Native support for gRPC based services)
- [KumuluzEE GraphQL](https://github.com/kumuluz/kumuluzee-graphql) (Native support for GraphQL)
- [KumuluzEE Ethereum](https://github.com/kumuluz/kumuluzee-ethereum) (For Ethereum-enabled blockchain microservices)
- [KumuluzEE AMQP](https://github.com/kumuluz/kumuluzee-amqp) (Support for Advanced Message Queueing Protocol)
- [KumuluzEE Feature Flags](https://github.com/kumuluz/kumuluzee-feature-flags) (Support for development with feature flags.)
- [KumuluzEE JCache](https://github.com/kumuluz/kumuluzee-jcache) (Support for caching using JCache annotations.)
- [KumuluzEE Version](https://github.com/kumuluz/kumuluzee-version) (Support for exposing version details of microservice.)## MicroProfile
KumuluzEE is Eclipse MicroProfile compliant and provides support for:
- MicroProfile 1.0
- MicroProfile 1.1
- MicroProfile 1.2
- MicroProfile 1.3
- MicroProfile 1.4
- MicroProfile 2.0
- MicroProfile 2.1
- MicroProfile 3.0
- MicroProfile 3.1
- MicroProfile 3.2
- MicroProfile 3.3It implements the following MicroProfile APIs:
- [MicroProfile Config](https://github.com/kumuluz/kumuluzee-config-mp)
- [MicroProfile Health Check](https://github.com/kumuluz/kumuluzee-health)
- [MicroProfile Fault Tolerance](https://github.com/kumuluz/kumuluzee-fault-tolerance)
- [MicroProfile Metrics](https://github.com/kumuluz/kumuluzee-metrics)
- [MicroProfile JWT Authentication](https://github.com/kumuluz/kumuluzee-jwt-auth)
- [MicroProfile Rest Client](https://github.com/kumuluz/kumuluzee-rest-client)
- [MicroProfile OpenAPI](https://github.com/kumuluz/kumuluzee-openapi-mp)
- [MicroProfile Open Tracing](https://github.com/kumuluz/kumuluzee-opentracing)## Usage
KumuluzEE ships with a BOM (bill of materials) which you can use to easily add the various components you need without worrying about the versions and their compatibility as it is required that all components are the same version.
Using maven add the BOM module of the library as a dependency to your project. The `${kumuluzee.version}` variables represents the most current minor version. You can see the available version on the
[Release Page](https://github.com/kumuluz/KumuluzEE/releases).```xml
com.kumuluz.ee
kumuluzee-bom
${kumuluzee.version}
pom
import
```
Now you can choose either any single combinations of Java components or use one of the common pre-built profiles that ship as part of KumuluzEE. You can chose any of the following profiles:
MicroProfile 1.0
```xmlcom.kumuluz.ee
kumuluzee-microProfile-1.0```
MicroProfile 1.1
```xmlcom.kumuluz.ee
kumuluzee-microProfile-1.1```
MicroProfile 1.2
```xmlcom.kumuluz.ee
kumuluzee-microProfile-1.2```
MicroProfile 1.3
```xmlcom.kumuluz.ee
kumuluzee-microProfile-1.3```
MicroProfile 1.4
```xmlcom.kumuluz.ee
kumuluzee-microProfile-1.4```
MicroProfile 2.0
```xmlcom.kumuluz.ee
kumuluzee-microProfile-2.0```
MicroProfile 2.1
```xmlcom.kumuluz.ee
kumuluzee-microProfile-2.1```
MicroProfile 3.0
```xmlcom.kumuluz.ee
kumuluzee-microProfile-3.0```
MicroProfile 3.1
```xmlcom.kumuluz.ee
kumuluzee-microProfile-3.1```
MicroProfile 3.2
```xmlcom.kumuluz.ee
kumuluzee-microProfile-3.2```
MicroProfile 3.3
```xmlcom.kumuluz.ee
kumuluzee-microProfile-3.3```
To choose your Java components with fine grain control include them as your dependencies. You can chose any of the following artifacts:
```xml
com.kumuluz.ee
kumuluzee-servlet-jettycom.kumuluz.ee
kumuluzee-websocket-jettycom.kumuluz.ee
kumuluzee-jsp-jettycom.kumuluz.ee
kumuluzee-el-uelcom.kumuluz.ee
kumuluzee-cdi-weldcom.kumuluz.ee
kumuluzee-jpa-eclipselinkcom.kumuluz.ee
kumuluzee-jpa-hibernatecom.kumuluz.ee
kumuluzee-jax-rs-jerseycom.kumuluz.ee
kumuluzee-jax-ws-metrocom.kumuluz.ee
kumuluzee-jax-ws-cxfcom.kumuluz.ee
kumuluzee-jsf-mojarracom.kumuluz.ee
kumuluzee-bean-validation-hibernate-validatorcom.kumuluz.ee
kumuluzee-json-p-jsonpcom.kumuluz.ee
kumuluzee-json-b-yassoncom.kumuluz.ee
kumuluzee-jta-narayanacom.kumuluz.ee
kumuluzee-javamail-ri```
To choose your KumuluzEE project, you simply include it as your dependency. You can find the available implementations and options at their respected project pages.
## Pack and run microservice as Uber JAR
KumuluzEE (version 2.4 and higher) provides support for packing and running microservices as Uber JARs. It also includes a Maven plugin that correctly packages the microservice.
To package a Kumuluz EE microservice into an Uber JAR, you need to add the following plugin declaration into your
REST module pom.xml:```xml
com.kumuluz.ee
kumuluzee-maven-plugin
${kumuluzee.version}
package
repackage
```
#### Parameters
* __finalName__
Final name of the generated "uber" JAR.
__Default value is__: `${project.build.finalName}` or `${project.artifactId}-${project.version}`
* __outputDirectory__Directory containing the generated JAR.
__Default value is__: `${project.build.directory}`### Run
Start the application using the following command:
```cmd
java -jar ${project.build.finalName}.jar
```
Example:
```cmd
java -jar my-app-1.0.0-SNAPSHOT.jar
```## Getting started
You can find the getting started guide on the projects [wiki](https://github.com/kumuluz/KumuluzEE/wiki/Getting-started).
You can find samples [for Java EE and KumuluzEE]( https://github.com/kumuluz/kumuluzee-samples)## Building
Ensure you have JDK 8 (or newer), Maven 3.2.1 (or newer) and Git installed
```bash
java -version
mvn -version
git --version
```First clone the KumuluzEE repository:
```bash
git clone https://github.com/kumuluz/KumuluzEE.git
cd KumuluzEE
```
To build KumuluzEE run:```bash
mvn clean package
```This will build all modules and run the testsuite.
Once completed you will find the build archives in the modules respected `target` folder.## Changelog
Recent changes can be viewed on Github on the [Releases Page](https://github.com/kumuluz/KumuluzEE/releases)
## Contribute
See the [contributing docs](https://github.com/kumuluz/KumuluzEE/blob/master/CONTRIBUTING.md)
When submitting an issue, please follow the [guidelines](https://github.com/kumuluz/KumuluzEE/blob/master/CONTRIBUTING.md#bugs).
When submitting a bugfix, write a test that exposes the bug and fails before applying your fix. Submit the test alongside the fix.
When submitting a new feature, add tests that cover the feature.
## License
MIT