{"id":19818824,"url":"https://github.com/sloppycoder/batch-doc-receiver","last_synced_at":"2025-06-10T17:10:27.353Z","repository":{"id":90083440,"uuid":"539780343","full_name":"sloppycoder/batch-doc-receiver","owner":"sloppycoder","description":null,"archived":false,"fork":false,"pushed_at":"2022-09-25T16:28:16.000Z","size":98,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-02-28T20:02:14.107Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sloppycoder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-22T03:23:00.000Z","updated_at":"2022-09-22T03:24:56.000Z","dependencies_parsed_at":"2023-03-13T18:00:00.812Z","dependency_job_id":null,"html_url":"https://github.com/sloppycoder/batch-doc-receiver","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sloppycoder%2Fbatch-doc-receiver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sloppycoder%2Fbatch-doc-receiver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sloppycoder%2Fbatch-doc-receiver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sloppycoder%2Fbatch-doc-receiver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sloppycoder","download_url":"https://codeload.github.com/sloppycoder/batch-doc-receiver/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sloppycoder%2Fbatch-doc-receiver/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259114577,"owners_count":22807252,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-11-12T10:17:00.051Z","updated_at":"2025-06-10T17:10:27.329Z","avatar_url":"https://github.com/sloppycoder.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# a batch document processor\n\nQuery presentment of PENDING status from a table, group documents into chunk of N, process them, and update the status.\n\n## Prepare MYSQL database\n```\n# mysql -u root -p\n\nCREATE USER 'svc1'@'localhost' IDENTIFIED BY 'svc1';\nCREATE DATABASE eipp;\nGRANT ALL PRIVILEGES ON eipp.* TO 'svc1'@'localhost';\n```\n\n### start processor with producer enabled\nThe producer periodically create random documents that will be processed by the processor\n```\n# add -Dspring.config.location=file:application.yml if using alternative config file\njava -Dbatch.producer.enabled=true -jar target/presentment-sender-0.0.1-SNAPSHOT.jar \n```\n\n### start as many processors as needed\nthis step is designed to test multiple processor operating on the same table and see if any racing conditions occurs.\n``` \njava -jar target/presentment-sender-0.0.1-SNAPSHOT.jar \n\n```\n\n### run script to check log files for errors\nthe script will read output of all processor and print document IDs that appears to more than 1 log\nthis utility is out-of-date, needs to be updated \n```\nwatch -n 10 python check.py batch*.log\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsloppycoder%2Fbatch-doc-receiver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsloppycoder%2Fbatch-doc-receiver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsloppycoder%2Fbatch-doc-receiver/lists"}