{"id":17592891,"url":"https://github.com/robinfehr/verify-pubsub","last_synced_at":"2025-03-29T18:44:45.064Z","repository":{"id":146857548,"uuid":"154896550","full_name":"robinfehr/verify-pubsub","owner":"robinfehr","description":"Verifies if all messages are received from the subscribers. ","archived":false,"fork":false,"pushed_at":"2018-11-07T11:49:37.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-04T19:44:24.265Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robinfehr.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-26T21:30:02.000Z","updated_at":"2018-11-07T11:49:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"977bac98-6124-42c2-9ff0-d3b6c24b47cf","html_url":"https://github.com/robinfehr/verify-pubsub","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/robinfehr%2Fverify-pubsub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinfehr%2Fverify-pubsub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinfehr%2Fverify-pubsub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinfehr%2Fverify-pubsub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robinfehr","download_url":"https://codeload.github.com/robinfehr/verify-pubsub/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246230493,"owners_count":20744346,"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-10-22T05:44:05.295Z","updated_at":"2025-03-29T18:44:45.041Z","avatar_url":"https://github.com/robinfehr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Verify-PubSub\n===========================\n## Description\nThis command line tool aims to verify whether you encounter loss off messges in a pub sub setup.\nIt checks that all published messages are received by the subscribers\nand makes sure, firstly that they're in the correct order and secondly continuous - without loss of messages.\n\nThe tool was initially developed for detecting network problems by running it within more complex cloud setups.\n\nIn its core, it's database agnostic but has specializations for each database.\n\nCurrently supported databases:\n- redis\n\nnote:\nThe publisher starts publishing immetiadely. If you don't want to miss any message you might want to\nsetup the subscribers first.\n\n## Installation\n```\nnpm install verify-pubsub -s\n```\n\n## Usage\n\nPublish:\n```js\nconst dbWrapper = require('verify-pubsub');\nnew dbWrapper({\n  database: 'redis',\n  host: 'localhost',\n  port: '6379' ,\n  password: 'somePassword',\n  progresss: true\n}, (db) =\u003e {\n  // key, interval\n  db.startPublish('someKey', 5);\n});\n```\n\nSubscribe:\n\n```js\nconst dbWrapper = require('verify-pubsub');\nnew dbWrapper({\n  database: 'redis',\n  host: 'localhost',\n  port: '6379' ,\n  password: 'somePassword',\n  progress: true\n}, (db) =\u003e {\n  db.startSubscribe('someKey');\n});\n```\n\n---\n\n## License\n\nCopyright (c) 2018 Robin Fehr\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobinfehr%2Fverify-pubsub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobinfehr%2Fverify-pubsub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobinfehr%2Fverify-pubsub/lists"}