{"id":37019860,"url":"https://github.com/mageddo-projects/tobby-transactional-outbox","last_synced_at":"2026-01-14T02:13:18.072Z","repository":{"id":40495291,"uuid":"345217871","full_name":"mageddo-projects/tobby-transactional-outbox","owner":"mageddo-projects","description":"Tobby - A transactional outbox implementation","archived":false,"fork":false,"pushed_at":"2022-05-05T16:01:09.000Z","size":539,"stargazers_count":5,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-07-28T14:34:04.318Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mageddo-projects.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-06T23:32:41.000Z","updated_at":"2022-05-03T14:48:36.000Z","dependencies_parsed_at":"2022-08-09T22:12:31.272Z","dependency_job_id":null,"html_url":"https://github.com/mageddo-projects/tobby-transactional-outbox","commit_stats":null,"previous_names":[],"tags_count":23,"template":null,"template_full_name":null,"purl":"pkg:github/mageddo-projects/tobby-transactional-outbox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mageddo-projects%2Ftobby-transactional-outbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mageddo-projects%2Ftobby-transactional-outbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mageddo-projects%2Ftobby-transactional-outbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mageddo-projects%2Ftobby-transactional-outbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mageddo-projects","download_url":"https://codeload.github.com/mageddo-projects/tobby-transactional-outbox/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mageddo-projects%2Ftobby-transactional-outbox/sbom","scorecard":{"id":611417,"data":{"date":"2025-08-11","repo":{"name":"github.com/mageddo-projects/tobby-transactional-outbox","commit":"87e8c5419c9be4a80811b7b1e601960424e6153d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/25 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":8,"reason":"binaries present in source code","details":["Warn: binary detected: examples/spring/gradle/wrapper/gradle-wrapper.jar:1","Warn: binary detected: gradle/wrapper/gradle-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 15 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T02:45:19.755Z","repository_id":40495291,"created_at":"2025-08-21T02:45:19.755Z","updated_at":"2025-08-21T02:45:19.755Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-14T02:13:17.007Z","updated_at":"2026-01-14T02:13:18.065Z","avatar_url":"https://github.com/mageddo-projects.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tobby-transactional-outbox\nTobby - A transactional outbox implementation\n\n![Tobby](https://i.imgur.com/SOomiFq.png)\n\n## Getting Started\n\n### Vanilla\n\n### Spring\n\n##### Configure the deps\n```bash\nimplementation 'com.mageddo.tobby-transactional-outbox:spring:2.1.5-alpha-alpha-alpha-alpha-alpha'\n```\n\n##### Configure the database tables\nYou need 2 new tables, see migration [configuration directory][2] and choose one compatible with your DB\n\n##### Configure Spring\n\n```java\n@SpringBootApplication\n@EnableTobbyTransactionalOutbox\npublic class App {\n  public static void main(String[] args){\n    SpringApplication.run(App.class, args);\n  }\n}\n```\n\nNot just inject the old and good `KafkaTemplate` and use it\n\n```\n@Autowired \nKafkaTemplate kafkaTemplate;\n\nKafkaTemplate.send(...);\n```\n\n## Requirements\n* Java 8+\n* Kafka 0.11+\n* A relational database with JDBC driver, the following were tested\n   * Postgres\n   * MySQL\n   * Oracle\n   * SQL Server\n   * HSQLDB\n   * H2\n\n## Performance Tests\n\nTests made on Postgres 10 using a producer with 50 java threads producing messages while the replicator was\nreplicating at the same time\nusing **DELETE** idempotency strategy (which is the faster one) achieved a result of **8,300/s** \n(eight thousand per second) messages committed by\nthe producer to the database, also the replicator read the records, send and committed to the Kafka broker.\n\nIn other words, you will be able to process around  500 thousand messages per minute or 30 million messages per hour\nusing Tobby having the Transactional Outbox guarantee,\nthese numbers should increase considerably at a decent production environment hardware.\n\nYou can reproduce this test right now by execute the main classes at [this package][1].\n\n### Specs used at the test\nBelow the computer used to perform the tests, all the required software ran at the same machine, \nCPU and memory usage were pretty small (below 20%), so a computer with less CPU and RAM with a better SSD should\nshow better results. \n\n#### Processor\n```\nIntel(R) Core(TM) i7-8700 CPU @ 3.20GHz\n```\n\n#### Memory\n4 RAM slots with the following specs\n```\nTotal Width: 64 bits\nData Width: 64 bits\nSize: 8192 MB\nForm Factor: DIMM\nSet: None\nLocator: ChannelB-DIMM1\nBank Locator: BANK 3\nType: DDR4\nType Detail: Synchronous\nSpeed: 2666 MT/s\nManufacturer: Kingston\nSerial Number: 0D2BE622\nAsset Tag: 9876543210\nPart Number: KHX2666C16/8G\nRank: 1\nConfigured Clock Speed: 2666 MT/s\nMinimum Voltage: 1.2 V\nMaximum Voltage: 1.2 V\nConfigured Voltage: 1.2 V\n```\n\n#### SSD\n```\nproduct: WDC WDS240G2G0A-\nvendor: Western Digital\nbus info: scsi@4:2.1.5-alpha-alpha-alpha-alpha-alpha-alpha-alpha\nserial: 182394807269\nsize: 223GiB (240GB)\ncapabilities: partitioned partitioned:dos\nconfiguration: ansiversion=5 logicalsectorsize=512 sectorsize=512 signature=b088b822\n```\n\n\nRead speed test\n```\n$ sudo hdparm -Tt /dev/sde\nTiming cached reads:   35110 MB in  1.99 seconds = 17624.25 MB/sec\nTiming buffered disk reads: 1248 MB in  3.00 seconds = 415.90 MB/sec\n```\n\nWrite speed test\n\n```\n10240+0 records in\n10240+0 records out\n83886080 bytes (84 MB, 80 MiB) copied, 0.523091 s, 160 MB/s\n```\n\n[1]: https://github.com/mageddo-projects/tobby-transactional-outbox/tree/f1ad98e/src/test/java/apps\n[2]: src/main/resources/com/mageddo/tobby/db\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmageddo-projects%2Ftobby-transactional-outbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmageddo-projects%2Ftobby-transactional-outbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmageddo-projects%2Ftobby-transactional-outbox/lists"}