{"id":28680725,"url":"https://github.com/MAIF/thoth","last_synced_at":"2025-06-14T02:03:45.950Z","repository":{"id":43257248,"uuid":"298297768","full_name":"MAIF/thoth","owner":"MAIF","description":"Event sourcing in java with vavr, akka stream and vertx reactive PG driver","archived":false,"fork":false,"pushed_at":"2025-06-11T09:04:23.000Z","size":2304,"stargazers_count":32,"open_issues_count":15,"forks_count":9,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-06-11T09:49:57.644Z","etag":null,"topics":["akka-streams","event-sourcing","functional-programming","java","kafka","postgresql"],"latest_commit_sha":null,"homepage":"https://MAIF.github.io/thoth/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MAIF.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","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":"2020-09-24T14:05:45.000Z","updated_at":"2025-06-11T09:04:26.000Z","dependencies_parsed_at":"2024-11-15T07:29:32.596Z","dependency_job_id":"6b355037-a68e-4936-b2de-cb7b456516bf","html_url":"https://github.com/MAIF/thoth","commit_stats":null,"previous_names":[],"tags_count":44,"template":false,"template_full_name":null,"purl":"pkg:github/MAIF/thoth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MAIF%2Fthoth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MAIF%2Fthoth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MAIF%2Fthoth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MAIF%2Fthoth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MAIF","download_url":"https://codeload.github.com/MAIF/thoth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MAIF%2Fthoth/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259747197,"owners_count":22905308,"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":["akka-streams","event-sourcing","functional-programming","java","kafka","postgresql"],"created_at":"2025-06-14T02:01:11.751Z","updated_at":"2025-06-14T02:03:45.942Z","avatar_url":"https://github.com/MAIF.png","language":"Java","funding_links":[],"categories":["开发框架"],"sub_categories":[],"readme":"# Event sourcing [![github-action-badge][]][github-action] [![jar-badge][]][jar]\n\n[github-action]:        https://github.com/MAIF/thoth/actions?query=workflow%3ABuild\n[github-action-badge]:  https://github.com/MAIF/thoth/workflows/Build/badge.svg?branch=master\n[jar]:              https://maven-badges.herokuapp.com/maven-central/fr.maif/thoth-core_2.13\n[jar-badge]:        https://maven-badges.herokuapp.com/maven-central/fr.maif/thoth-core_2.13/badge.svg\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"thoth.png\" alt=\"thoth\" width=\"300\"/\u003e\n\u003c/p\u003e\n\nThis repository provides tools to implement event sourcing in your application. \n\nIt guaranties that:\n* Events will be written in the database before being published in Kafka\n* Publication in Kafka will be reattempted until it succeeds\n\nIt provides capabilities of defining two types of projections:\n* \"Transactional\" projections, that are updated in the same transaction as the events\n* \"Eventually consistent\" projections, updated asynchronously by consuming Kafka\n\n![](thoth-documentation/src/main/paradox/img/thoth_event_sourcing.jpg)\n\nIt also allows storing snapshots of the application state, for scenarios that implies lot of events. \n\nThese libs are based on : \n * Vavr for functional stuff (immutable `List`, `Either`, `Future`)\n * Akka stream for reactive streams\n * jackson for json \n * jooq to build query \n * vertx for reactive postgresql database access  \n * Postgresql and kafka are the in production tested data stores \n\n## Modules \n\n * `commons-event`: POJOs that represent the stored events. Can be used by consumers to parse events. \n * `thoth-core`: APIs for event-sourcing \n * `thoth-jooq`: A jooq simple implementation of the `thoth-core` APIs   \n * `thoth-jooq-async`: A jooq implementation of the `thoth-core` APIs using the `jooq-async-api`interface\n\n## Documentation\n\nSee our [documentation](https://maif.github.io/thoth/manual/).\n\n## Limits\n\n* A single command can't currently modify multiple entities [see this issue](https://github.com/MAIF/thoth/issues/4)\n\n## Development \n\n### Compile / Test \n\n```bash\n./gradlew compileJava\n```\n\n```bash\ndocker-compose -f docker-compose.test.yml up \n./gradlew test\n```\n\n### Generate the documentation \n\n```bash\ncd thoth-documentation\nsbt generateDoc\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMAIF%2Fthoth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMAIF%2Fthoth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMAIF%2Fthoth/lists"}