https://github.com/sanderploegsma/beam-di
Dependency Injection in Apache Beam
https://github.com/sanderploegsma/beam-di
apache-beam dependency-injection
Last synced: 4 months ago
JSON representation
Dependency Injection in Apache Beam
- Host: GitHub
- URL: https://github.com/sanderploegsma/beam-di
- Owner: sanderploegsma
- Created: 2018-06-05T20:30:09.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-06-05T20:37:10.000Z (about 7 years ago)
- Last Synced: 2025-01-10T14:04:08.640Z (6 months ago)
- Topics: apache-beam, dependency-injection
- Language: Java
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dependency Injection in Apache Beam
This is an example implementation of the Dependency Injection approach as described in https://www.tikalk.com/posts/2017/05/24/apache-beam-testing/### Caveats
It seems to be impossible to combine this approach with Apache Beam's `TestPipeline`, so you cannot use `PAssert` anywhere. This is because any `PipelineOptions` you pass to the `TestPipeline` are not used directly, but serialized and deserialized instead (I guess).If you happen to know how to solve this, feel free to let me know in the issues.