Closed itaifrenkel closed 6 years ago
Fair enough however that seems a specialized use-case, which while sounds, is not generic enough (in my opinion) to be included in the library. Parameterized / dynamic sources tend to be addressed (for performance and usability purposes) in a customized fashion as oppose to a declarative approach hence why, out of the box the library provides reading and writing and leaves ETL or other processing parts to the data pipeline/user.
See also the new proposed JdbcLookupBolt https://github.com/apache/storm/pull/374/files
With the addition of the high and low level java rest clients, I am not seeing the benefit to building out a potentially complicated enrichment bolt for Storm/other integrations. These sorts of solutions are never quite generic enough, and often are used by a limited set of users. I am closing this for now, but would be fine with reopening it if there is enough community support. +1's on initial issue post please.
Reading from ElasticSearch is not for spouts only. One could use ES bolt to enrich input tuple with data stored in ES. For example given an id emit the document that matches that id. In its most generic form the input tuple would be a valid ES json query, and the output would be the ES json result.