WSO2's new Microservices Framework for Java (MS4J) facilitates the creation of container-ready microservices based on Java.
Integration middleware provider WSO2
has announced a new Microservices Framework for Java (MS4J) to help developers build microservices in Java that support container-based deployments.
The emergence of cloud, mobile and the Internet of things (IoT) applications has accelerated the adoption of microservices, and WS02 is getting in on the action by delivering its own microservices framework for Java, said Isabelle Mauny, vice president of product management.
Microservices is a software architecture style where complex applications are composed of small, independent processes communicating with each other using language-agnostic APIs. These decoupled services are small building blocks that focus on small tasks to facilitate a modular approach to system-building. To facilitate the creation of microservices based on Java, WSO2 today introduced its open-source WSO2 Microservices Framework for Java 1.0 (WSO2 MS4J).
"This product was born to give our customers a very lightweight framework for developing microservices in Java," Mauny told eWEEK
. "The key goal here is if you look at what a microservices architecture mandates, it will include an application with a set of the right services with the right scope, and each of those services will execute individually in its own little world, which is probably a container. That's the trend and one of the most advocated patterns for deploying and managing microservices."
Mauny noted that software architects and developers are adopting microservices to ensure continuous agile delivery and flexible deployment of their service-oriented applications across a range of platforms.
WSO2 is known for its expertise in delivering integration solutions, based on the company's integration platform. The company provides enterprise service bus (ESB) integration, API management, and products for managing the security of integration and analytics of the integration platform.
"We have an entire platform offering our customers end-to-end solutions to integration problems," Mauny said. "We look at integration as a large concept where you integrate data, security and services. And we apply analytics on each of those to understand at a technical level and at a business level the behavior of your system."
In its analytics framework, WSO2 applies complex event processing, real-time analytics and machine learning to provide more real-time reaction to patterns in the execution of an application or services, as well as machine learning for learning from the past and predicting what could happen next. All of this is related to the MS4J framework and how it plugs into the overall WSO2 architecture, Mauny said.
The WSO2 MS4J framework enables organizations to build, integrate, manage, secure and analyze their APIs, applications, Web services and microservices—on-premises, in the cloud, on mobile devices and across the IoT.
The framework is built for high-performance, low-footprint architectures. Microservices developed using the framework can boot within 400 milliseconds in a Docker container and can easily be added to a Docker image definition, Mauny said.
"If you're going to write a microservice in Java and run it inside a container, the whole advantage of running inside a container is it's very lean, it's very fast to deploy," Mauny told eWEEK
. "You can create a new container so you can very easily create a new instance of a service when you need it—because you have multiple applications that are tapping into that single service and you just need to boot up another instance to cope with that load. So when you boot up that new instance, it's really important that that happens fast. If you have a container that can boot in a few hundred milliseconds, but it takes a minute to start the service behind it because the whole server in which the service is running is taking all that time to start, that kind of defeats the purpose."
WSO2 MSF4J uses annotations, such as Java API for RESTful Web Services (JAX-RS)
annotations, not only to write but also to monitor microservices. The framework uses metrics based on the WSO2 Data Analytics Server (WSO2 DAS) to monitor microservices.