How can I send the output of an Apache Flink job execution to a NodeJS backend application?

First, allow me to share some context: I have an Amazon Kinesis Data Stream, where data is continuously stored. I also have an Apache Flink application that will integrate with the Amazon Kinesis Data Stream and have access to the data in the Amazon Kinesis Data Stream.

I have to create a job in the Apache Flink that, based on two timestamp input parameters that will be sent to the job, called “from” and “to,” would retrieve all the data from the Amazon Kinesis Data Stream that fits in the interval mentioned by the two input parameters (the data records from the Kinesis Data Stream also have a ‘timestamp’ field), and then return the data.

I also have a NodeJS backend application that exposes a GET endpoint. When the respective GET endpoint is called, I need to trigger the job I mentioned in the Apache Flink application, and then, after the job finishes running/executing, I need to get all the data that was retrieved by the Apache Flink application from the KDS back into the NodeJS backend service, within the same NodeJS execution context, because in the end, I need to return the data retrieved from KDS, by the Flink job, as a response to the GET endpoint of the NodeJS application. Is achieving this functionality possible, and if yes, how can it be done?

From what I read in the Apache Flink’s APIs documentation: https://nightlies.apache.org/flink/flink-docs-release-1.20/docs/ops/rest_api/, I have the following idea:

  1. Upload the ‘jar’ that retrieves the data from KDS to the Apache Flink application
  2. When the GET endpoint of my NodeJS backend application is called, I call POST on the /jars/:jarid/run API from Apache Flink, which will run the job to get the data from KDS, and then I continuously call GET on the /jobs/:jobid/execution-result API from Apache Flink to find out when the job is completed. After the /jobs/:jobid/execution-result API returns ‘completed,’ my question is: how can I now send/transfer the data retrieved from KDS as part of the Apache Flink job execution to the NodeJS application within the same NodeJS execution context that was created by the initial call to the GET endpoint of the NodeJS backend application.

NOTE: In the Apache Flink job, after I retrieve the data from KDS, I must not output the data to a temporary storage solution and then retrieve it from the storage in the NodeJS application, the data has to make its way directly from the Apache Flink job to the NodeJS application, within the same context, so I must also not make a separate https call from the Apache Flink job to the NodeJS application to send the data. Making use of other AWS services should be ok, if they would help, as long as it is not for stoing the data anywhere.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật