Jarslink of modular development framework based on Java

Source: Internet
Author: User
Jarslink Detailed Introduction

Jarslink (formerly known as Titan) is a java-based modular development framework that provides APIs for dynamically loading modules (a Jar package), unloading modules, and modules at runtime. Requirements Background

There is a problem with how many or fewer applications are split. Multiple maintenance costs are high, each release a pile of applications. Small split cost is high, useless function is difficult to get off the line.

Failure is not isolated. When a system is developed by many people at the same time, modifying a function may affect B function and cause failure.

Multiple-branch development raises a conflict. Merging after multiple branches has been developed is a conflict.

Lead the whole body. A change in the core code, or an upgrade of a base jar, requires a return to the entire system.

Upgrade and migration costs are high. Middleware upgrades each application has an upgrade cost. the benefits of modular development

Pluggable, an application consists of multiple modules, the application of the module can be disassembled and combined, modules can be quickly in multiple systems migration and deployment.

Modular development, isolation between modules, to achieve fault isolation.

A branch of a module that does not raise code conflicts.

Adding or modifying functionality in a module will only affect the current module and will not affect the entire application.

Dynamic deployment, in the runtime to deploy the module to the application, rapid repair failures, improve the efficiency of publishing.

Multi-version deployment, which allows you to deploy both the old and new versions of a module at run time for AB TEST.

Reduce resource consumption and reduce the number of applications and machines by deploying modules. Jarslink's application scenario

Micro-service integration testing, currently a micro-service is a fat jar, if there are dozens of micro-services, you need to start a lot of processes, debug ports are many, using the Jarslink framework to merge fat jars, and then route requests to other jars, you can only start a process for the debug test.

Data Management Center, data acquisition of a number of sources, and each of the data sources need docking and development, through the modular development, to achieve a data source using a module for docking.

Index computing system, each topic a module, the message forward to the module for message processing.

Background management system, almost every system has the need for background development, the new application is a number of applications, high maintenance costs, the introduction of modular development, a two-level domain A module to develop background functions.

At present, the ant service Micro-credit division several systems and dozens of modules have been using the Jarslink framework. Characteristics of Jarslink

Isolation of

Class Isolation: The framework is loaded with separate ClassLoader for each module's class, and each module can rely on different versions of the same framework.

Instance isolation: The framework creates a separate spring context for each module to load the beans in the module, and the instantiation failure does not affect other modules.

Resource isolation: Subsequent support for resource isolation between modules, using separate CPU and memory resources for each module.

of dynamic

Dynamic Publishing: Modules can be dynamically loaded into the system at runtime, implementing new features that do not require a reboot and release of the system. Support for breaking the parental delegation mechanism, loading classes that the parent loader has already loaded at run time, and implementing a module upgrade dependency pack without the need for system publishing.

Dynamic Uninstall: The module can be dynamically unloaded at runtime, realizing fast off-line does not need function.

Ease of Use

Provides a versatile, flexible API for systems and modules to interact with.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.