Closed liugddx closed 1 month ago
@hailin0 @Hisoka-X PTAL
suggestion default config
seatunnel:
engine:
http
port: 5800
context-path: /api
How to coexist /api
and /hazelcast/rest/maps
? This is the premise for smooth migration
How to coexist
/api
and/hazelcast/rest/maps
? This is the premise for smooth migration
Yes, I will keep the original url path unchanged, and the new url will be bound to the new port
Closed by #7647
Search before asking
Description
Backgroud
The current rest api implementation is to use the native Hazelcast rest api, which is simple but there are very many limitations, such as the inability to customize the url, the performance is not as good as jetty, and scalability is not enough.
Motivation
The Hazelcast Native REST API presents significant limitations in functionality, scalability, performance, security, maintenance, and integration, which hinder its effectiveness in complex front-end and back-end unified projects. On the other hand, Jetty stands out as a high-performance, feature-rich, and highly customizable web server capable of addressing the demands of modern Java applications.
Therefore, it is recommended to phase out the Hazelcast Native REST API and adopt Jetty as the unified front-end and back-end server solution. This transition will enhance system performance, strengthen security, improve maintainability, and provide a robust foundation for future feature expansions.
Architecture design
The current rest api design looks like this,it is implemented through hazelcast native rest api.
You can see that the current URL cannot be modified, which limits our use.
SeaTunnelServer binding jetty service
Since SeaTunnelServer is a resident process, we can bind a new port specifically for jetty use.We can add two configuration items
This is part of the code of SeaTunnelServerStarter
Existing API interfaces can be quickly migrated to Jetty,The following is an example of getting a running jobs
The new rest api can coexist with the old one and can completely replace it in future releases.
Usage Scenario
No response
Related issues
No response
Are you willing to submit a PR?
Code of Conduct