{"id":28169857,"url":"https://github.com/zavalit/reactive-cqrs-journeyplanner","last_synced_at":"2025-10-08T22:29:57.578Z","repository":{"id":73843732,"uuid":"176163573","full_name":"zavalit/reactive-cqrs-journeyplanner","owner":"zavalit","description":null,"archived":false,"fork":false,"pushed_at":"2019-03-17T22:42:18.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-28T08:51:39.094Z","etag":null,"topics":["scala"],"latest_commit_sha":null,"homepage":null,"language":"Scala","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/zavalit.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,"zenodo":null}},"created_at":"2019-03-17T21:34:33.000Z","updated_at":"2019-03-17T22:48:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"98235cf8-53eb-4efc-ab16-c2b27816d3db","html_url":"https://github.com/zavalit/reactive-cqrs-journeyplanner","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zavalit/reactive-cqrs-journeyplanner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zavalit%2Freactive-cqrs-journeyplanner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zavalit%2Freactive-cqrs-journeyplanner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zavalit%2Freactive-cqrs-journeyplanner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zavalit%2Freactive-cqrs-journeyplanner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zavalit","download_url":"https://codeload.github.com/zavalit/reactive-cqrs-journeyplanner/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zavalit%2Freactive-cqrs-journeyplanner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000786,"owners_count":26082851,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"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":["scala"],"created_at":"2025-05-15T16:18:52.299Z","updated_at":"2025-10-08T22:29:57.571Z","avatar_url":"https://github.com/zavalit.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Reactive CQRS Prototype\n\nSample implementation of Mobimeo Backend Engineering Challenge, \nthat more or less abstracts over initially specified task, in order to show public transport tracking, that is:\n- scalable\n- resilient\n\njust by design \n\nSo this implementation handles \"delay\" as a constantly changing value.  \n\n\n## HOW TO\nstart an app\n```\nsbt run\n```\nmake a sample request\n\n```\ncurl -X POST \\\n  http://localhost:8081/tracklines \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n\t\"coordinates\": {\"x\":1, \"y\":2},\n\t\"timestamp\": 1552856551274\n}'\n```\n\nexpected response looks like that:\n```\n{\n    \"ref\": \"ws://localhost:8082/1x2_1552856551274\"\n}\n```\n\n\nHere we separateed Write from Read\nTo Read data we connect to to `ws://localhost:8082/1x2_1552856551274` for example with [wsc](https://github.com/danielstjules/wsc)\nlike:\n```\n $ wsc ws://localhost:8082/1x2_1552856551274\n   Connected to ws://localhost:8082/1x2_1552856551274\n   \u003c {\n     \"line\" : {\n       \"id\" : \"200\"\n     },\n     \"stop\" : {\n       \"id\" : 1\n     },\n     \"scheduled_time\" : {\n       \"value\" : 1552857606519\n     },\n     \"expected_time\" : {\n       \"value\" : 1552857126519\n     }\n   }\n   \u003c ...\n\n```\n\nwe(client) start getting updates over relevant public transport lines for point/coordinate we are interested in.\n\nfor every new `POST /tracklines` we will get new `ref` and a new stream of scheduled/expected times for every relevant line.\n\n\n\nPublic Transport Arriving Data gets generated randomly and then send to a fanout, broadcasting this stream to an Actor and log it to a STDOUT\n\n```\n in ~\u003e bcast ~\u003e trackingSink\n       bcast ~\u003e loggingSink\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzavalit%2Freactive-cqrs-journeyplanner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzavalit%2Freactive-cqrs-journeyplanner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzavalit%2Freactive-cqrs-journeyplanner/lists"}