moov-io / achgateway

Payment gateway enabling automated ACH operations in a distributed and fault tolerant way.
https://moov-io.github.io/achgateway/
Apache License 2.0
54 stars 19 forks source link

feat: support gzip compression with Transforms #161

Closed adamdecaf closed 1 year ago

adamdecaf commented 1 year ago

Often File events need to be compressed in Kafka messages. The defaults in Kafka are fairly low and real-world ACH files can easily exceed them. Let's offer a basic compression boolean for folks to leverage.

Gzip has the best support in Go. bzip2 only supports reads.

codecov-commenter commented 1 year ago

Codecov Report

Base: 40.76% // Head: 40.89% // Increases project coverage by +0.13% :tada:

Coverage data is based on head (e059bc8) compared to base (6ef740b). Patch coverage: 66.66% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #161 +/- ## ========================================== + Coverage 40.76% 40.89% +0.13% ========================================== Files 90 90 Lines 3891 3912 +21 ========================================== + Hits 1586 1600 +14 - Misses 2009 2013 +4 - Partials 296 299 +3 ``` | [Impacted Files](https://codecov.io/gh/moov-io/achgateway/pull/161?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=moov-io) | Coverage Δ | | |---|---|---| | [pkg/models/model\_transform.go](https://codecov.io/gh/moov-io/achgateway/pull/161?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=moov-io#diff-cGtnL21vZGVscy9tb2RlbF90cmFuc2Zvcm0uZ28=) | `100.00% <ø> (ø)` | | | [pkg/compliance/encode.go](https://codecov.io/gh/moov-io/achgateway/pull/161?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=moov-io#diff-cGtnL2NvbXBsaWFuY2UvZW5jb2RlLmdv) | `76.19% <66.66%> (-9.53%)` | :arrow_down: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=moov-io). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=moov-io)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.