{"id":21948144,"url":"https://github.com/evolution-gaming/pubsub","last_synced_at":"2025-04-23T00:16:00.886Z","repository":{"id":26980485,"uuid":"112071983","full_name":"evolution-gaming/pubsub","owner":"evolution-gaming","description":"PubSub typesafe abstraction on top of akka DistributedPubSubMediator","archived":false,"fork":false,"pushed_at":"2024-08-12T13:54:39.000Z","size":229,"stargazers_count":3,"open_issues_count":37,"forks_count":2,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-23T00:15:55.164Z","etag":null,"topics":["akka","cluster","pubsub"],"latest_commit_sha":null,"homepage":null,"language":"Scala","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/evolution-gaming.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":"2017-11-26T09:54:46.000Z","updated_at":"2024-07-18T10:33:32.000Z","dependencies_parsed_at":"2024-07-18T12:43:29.530Z","dependency_job_id":null,"html_url":"https://github.com/evolution-gaming/pubsub","commit_stats":null,"previous_names":[],"tags_count":42,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evolution-gaming%2Fpubsub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evolution-gaming%2Fpubsub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evolution-gaming%2Fpubsub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evolution-gaming%2Fpubsub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evolution-gaming","download_url":"https://codeload.github.com/evolution-gaming/pubsub/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250343957,"owners_count":21415041,"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","cluster","pubsub"],"created_at":"2024-11-29T05:12:11.201Z","updated_at":"2025-04-23T00:16:00.859Z","avatar_url":"https://github.com/evolution-gaming.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PubSub\n[![Build Status](https://github.com/evolution-gaming/pubsub/workflows/CI/badge.svg)](https://github.com/evolution-gaming/pubsub/actions?query=workflow%3ACI)\n[![Coverage Status](https://coveralls.io/repos/github/evolution-gaming/pubsub/badge.svg?branch=master)](https://coveralls.io/github/evolution-gaming/pubsub?branch=master)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/5c1e3dc82255463f82583a3fa69fd56f)](https://www.codacy.com/app/evolution-gaming/pubsub?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=evolution-gaming/pubsub\u0026amp;utm_campaign=Badge_Grade)\n[![Version](https://img.shields.io/badge/version-click-blue)](https://evolution.jfrog.io/artifactory/api/search/latestVersion?g=com.evolutiongaming\u0026a=pubsub_2.13\u0026repos=public)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellowgreen.svg)](https://opensource.org/licenses/MIT)\n\n\nThe library is based on cats-effect 3 since 7.0.0 version, for cats-effect 2.x.x back ports use [series/6.x.x](https://github.com/evolution-gaming/pubsub/tree/series/6.x.x)\n\n### Typesafe layer for DistributedPubSubMediator\n\n```scala\ntrait PubSub[F[_]] {\n\n  def publish[A: Topic : ToBytes](\n    msg: A,\n    sender: Option[ActorRef] = None,\n    sendToEachGroup: Boolean = false\n  ): F[Unit]\n\n  def subscribe[A: Topic : FromBytes : ClassTag](\n    group: Option[String] = None)(\n    onMsg: OnMsg[F, A]\n  ): Resource[F, Unit]\n\n  def topics(timeout: FiniteDuration = 3.seconds): F[Set[String]]\n}\n```\n\n### Ability to serialize/deserialize messages to offload akka remoting and improve throughput\n\nCheck `DistributedPubSubMediatorSerializing.scala`\n\n\n## Setup\n\n```scala\naddSbtPlugin(\"com.evolution\" % \"sbt-artifactory-plugin\" % \"0.0.2\")\n\nlibraryDependencies += \"com.evolutiongaming\" %% \"pubsub\" % \"7.0.0\"\n```\n\n## CHANGELOG\n\n### 7.0.0\n\n##### Upgrades\n- cats-effect 2.5.4 to 3.3.11","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevolution-gaming%2Fpubsub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevolution-gaming%2Fpubsub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevolution-gaming%2Fpubsub/lists"}