{"id":17969341,"url":"https://github.com/klippx/phobosjs-mock","last_synced_at":"2025-04-03T21:42:52.229Z","repository":{"id":68524219,"uuid":"109969832","full_name":"klippx/phobosjs-mock","owner":"klippx","description":null,"archived":false,"fork":false,"pushed_at":"2017-11-09T08:52:49.000Z","size":12,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-09T09:41:43.300Z","etag":null,"topics":["consumer","kafka","phobos"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/klippx.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":"2017-11-08T11:56:11.000Z","updated_at":"2017-11-10T07:16:25.000Z","dependencies_parsed_at":"2023-06-11T11:00:09.929Z","dependency_job_id":null,"html_url":"https://github.com/klippx/phobosjs-mock","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/klippx%2Fphobosjs-mock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klippx%2Fphobosjs-mock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klippx%2Fphobosjs-mock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klippx%2Fphobosjs-mock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/klippx","download_url":"https://codeload.github.com/klippx/phobosjs-mock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247085976,"owners_count":20881158,"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":["consumer","kafka","phobos"],"created_at":"2024-10-29T14:42:54.704Z","updated_at":"2025-04-03T21:42:52.211Z","avatar_url":"https://github.com/klippx.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# phobosjs-mock\n\nSome simple ideas in code how we could be using phobos in practice.\n\nThe core ideas are\n- No multiprocessing, keep it simple.\n  - No need to farm out resources on each node, assume micro instances\n  - This alone should greatly reduce complexity of the Phobos code and make it easier to understand/contribute\n  - Instead, scale horizontally\n  - One service instance \u003c=\u003e one consumer \u003c=\u003e one configuration\n- Avoid meta programming and implicit contracts between users' services and phobos\n  - The user is in control\n  - The code written in services should be simple and readable, even if you don't know kafka (or even phobos!) you should still be able to understand\n- Move as much config as possible to `.phobosjs`\n- Require as little config as possible inside the users' services, if any.\n- Consider possibility of support such as\n  - Providing test tools for writing the consumer applications\n  - [Possibility to decode avro encoded kafka messages](standaloneConsumer-serializer.js)\n  - [Possibility of wrapping the message consumption and dealing with results (errors/success)](standaloneConsumer-messageWrapper.js)\n  - phobos-checkpoint-ui\n  - phobos-sensor\n    - =\u003e phobos-prometheus (provide collectors and exporters for internal consumer/producer metrics)\n    - =\u003e phobos-grafana (provide some rudimentary graphing of the data exported above)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklippx%2Fphobosjs-mock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fklippx%2Fphobosjs-mock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklippx%2Fphobosjs-mock/lists"}