{"id":19656281,"url":"https://github.com/daggerok/spring-boot-twitter","last_synced_at":"2025-04-28T18:32:48.710Z","repository":{"id":151042072,"uuid":"95995603","full_name":"daggerok/spring-boot-twitter","owner":"daggerok","description":"this repo demonstrate CQRS data transfer in REST API and messaging microservices. it’s containing (async RabbitMQ messaging and sync REST microservices) data models processing. spring-boot, rabbit, postgre, spring-data, spring-cloud-stream, gradle, docker, docker-compose, RabbitMQ, spring-cloud-starter-stream-rabbit, PostgreSQL, CQRS, Event Sourcing, eventsourcing, async messaging processing, spring-cloud","archived":false,"fork":false,"pushed_at":"2017-09-02T23:06:42.000Z","size":18,"stargazers_count":15,"open_issues_count":0,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-05T10:23:08.802Z","etag":null,"topics":["cqrs","docker","docker-compose","event-driven","event-sourcing","rabbitmq","spring","spring-boot","spring-cloud","spring-data","spring-microservices","spring-mvc","spring-websockets-stomp"],"latest_commit_sha":null,"homepage":"","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/daggerok.png","metadata":{"files":{"readme":"README.adoc","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-07-02T01:18:38.000Z","updated_at":"2023-10-22T20:09:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"aae4e868-0380-47b6-8c96-195e9b6fc6f2","html_url":"https://github.com/daggerok/spring-boot-twitter","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/daggerok%2Fspring-boot-twitter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Fspring-boot-twitter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Fspring-boot-twitter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Fspring-boot-twitter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daggerok","download_url":"https://codeload.github.com/daggerok/spring-boot-twitter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251366125,"owners_count":21578078,"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":["cqrs","docker","docker-compose","event-driven","event-sourcing","rabbitmq","spring","spring-boot","spring-cloud","spring-data","spring-microservices","spring-mvc","spring-websockets-stomp"],"created_at":"2024-11-11T15:27:19.577Z","updated_at":"2025-04-28T18:32:48.699Z","avatar_url":"https://github.com/daggerok.png","language":"Java","readme":"= spring-boot-twitter image:https://travis-ci.org/daggerok/spring-boot-twitter.svg?branch=master[\"Build Status\", link=\"https://travis-ci.org/daggerok/spring-boot-twitter\"]\n\n== added all backing- and micro- services into sinle docker-compose\n\nsee: `./twitter-docker/twitter-docker-services/src/docker-compose.yml`\n\nthis repo demonstrate CQRS data transfer in REST API and messaging microservices. it's containing (async `RabbitMQ messaging` and sync `REST` microservices) data models processing:\n\n. main idea here is: each microservice doing single simple job, but doing it well, efficient and fast\n. actor 1: `twitter-data` - single service which is listenning creation entity command (event) and store input data into RDBMS (Postgre SQL)\n. actor 2: scalable `twitter-commander` service, which is send async tweets creation commands\n. actor 3: scalable `twitter-query` service, which is only reading tweets from read-only datasorce. in production systems should be moved out from operational RDBMS to some nosql scalable / replicateble solution, such mongodb, or any other more siutable for you\n. in addition: common reusable subprojects, such domain and entity api...\n. important keywords:\n  - CQRS, event sourcing\n  - reactive streams, event-driven architecture\n  - messaging pipelines, non-blocking data processing\n\n== reads (can be improoved by spring 5 reactive programming model using Mono / Flux)\n\n[source]\n----\n[client] \u003c-\u003e (http get) \u003c-\u003e [twitter-query] \u003c-\u003e (jdbc select) \u003c-\u003e [rdbms]\n\n# with webflux and reactive data-source could also be non blocking:\n[client] \u003c~\u003e (http get sse) \u003c~\u003e [twitter-query (webflux)] \u003c~\u003e (reactive flux) \u003c~\u003e [mongo]\n----\n\n== writes (also can be improved by replacing rdbms solution with some siutable reactive nosql)\n\n[source]\n----\n[client] -\u003e (http post) -\u003e [twitter-command] ~\u003e (send async) ~\u003e [twitter-data] \u003c-\u003e (jdbc insert) \u003c-\u003e [rdbms]\n----\n\nnote:\n\n. `\\\u003c\\-\u003e` - sync processing\n. `\u003c~\u003e` - async processing\n\n== quick start\n\n[source,bash]\n----\ngradle --parallel bootRun\n\nhttp post :8881 data=test-tweet1\nhttp post :8881 data=test-tweet2\n\nhttp get :8882\n\ngradle --stop\n----\n\n== stack:\n\n. spring-boot\n. spring-data\n. spring-cloud-stream\n. RabbitMQ\n. Postgres\n. docker (docker-compose)\n. gradle\n. install spring app as linux service\n. CQRS and Event Sourcing\n. event-driven architecture\n. reactive streams, non-blocking data processing\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaggerok%2Fspring-boot-twitter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaggerok%2Fspring-boot-twitter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaggerok%2Fspring-boot-twitter/lists"}