简体   繁体   English

Spring Batch或Spring Integration?

[英]Spring Batch or Spring Integration?

I need to build a pipeline system for setting up different types of data. 我需要建立用于设置不同类型数据的管道系统。 For example, when a customer signs up, the first time the user logs in, i need to setup some sample data, sample reports. 例如,当客户注册时,用户首次登录时,我需要设置一些样本数据,样本报告。 The data is not fully static as it will add some time sensitive stuff, Like tasks that can expire in 30 days, 10 days. 数据不是完全静态的,因为它将添加一些对时间敏感的信息,例如可能在30天,10天后到期的任务。

In order to make this happen, we already have some REST services that can insert the data I need to add for the customer. 为了实现这一点,我们已经有了一些REST服务,可以插入我需要为客户添加的数据。 What I was wondering is that for the orchestration, is spring batch the right way or spring integration the right way ? 我想知道的是,对于业务流程,弹簧批处理是正确的方式,还是弹簧集成是正确的方式?

Spring integration all the way. 一路进行Spring集成。 You could model it in batch but you're not really doing batch processing. 您可以批量建模,但实际上并没有进行批量处理。 You're simply doing repeated tasks per user based on a given signal (first login). 您只需根据给定的信号(首次登录)为每个用户执行重复的任务。 I would use integration first. 我将首先使用集成。 You can always integrate batch later if needs be but integration is a shorter learning curve and I feel suits your needs better. 如果需要,您可以始终在以后进行批处理集成,但是集成是一条较短的学习曲线,我觉得更适合您的需求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM