以下只是要求:
- 从数据库读取
- 从数据中创建 3 个文件,仅在 if 语句上添加少量 setter
- 将 3 发送到相同的 sftp
编码:
1 Route Timer which to(direct)
1 Route trigger which call same (direct)
1 ROUTE - from(direct) then calls DB and fetches data and assign it to Bean and multicast to 3 transformation routes
3 routes - from(direct:transform) where similar transformation and ofr 3rd route a small different transformation and put to SFTP Route
1 Route to SFTP
这只能在 3 条路由中完成,即定时器路由、触发路由和从 3 到最后的单条路由。
只是想问如果部署50个类似类型的项目,创建多条路线是否被认为是昂贵的操作?