{"id":22353040,"url":"https://github.com/esskar/signalr.ravendb","last_synced_at":"2025-07-30T08:33:51.687Z","repository":{"id":13700900,"uuid":"16394780","full_name":"esskar/SignalR.RavenDB","owner":"esskar","description":"RavenDB messaging backplane for scaling out of ASP.NET SignalR applications in a web-farm.","archived":false,"fork":false,"pushed_at":"2014-04-16T09:53:17.000Z","size":1036,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-17T17:44:40.506Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/esskar.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}},"created_at":"2014-01-30T23:49:55.000Z","updated_at":"2023-08-12T14:53:13.000Z","dependencies_parsed_at":"2022-09-11T01:50:59.699Z","dependency_job_id":null,"html_url":"https://github.com/esskar/SignalR.RavenDB","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/esskar/SignalR.RavenDB","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esskar%2FSignalR.RavenDB","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esskar%2FSignalR.RavenDB/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esskar%2FSignalR.RavenDB/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esskar%2FSignalR.RavenDB/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/esskar","download_url":"https://codeload.github.com/esskar/SignalR.RavenDB/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esskar%2FSignalR.RavenDB/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267835956,"owners_count":24151894,"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-07-30T02:00:09.044Z","response_time":70,"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":[],"created_at":"2024-12-04T12:32:36.747Z","updated_at":"2025-07-30T08:33:51.311Z","avatar_url":"https://github.com/esskar.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SignalR.RavenDB\n\nRavenDB messaging backplane for scaling out of ASP.NET SignalR applications in a web-farm.\n\n## Get it on NuGet!\n\nSignalR.RavenDB is available via [NuGet][me-nuget].\n\n```\nPM\u003e Install-Package SignalR.RavenDB\n```\n\n## Usage\n\n* [Download RavenDB][raven-download] and [run the Server][raven-tutorial]\n* Add [Microsoft.AspNet.SignalR][signalr-nuget] NuGet package to your application\n* Create a SignalR application\n* Add the following code to Startup.cs to configure the backplane:\n```csharp\nusing Microsoft.AspNet.SignalR;\nusing SignalR.RavenDB;\n\npublic class Startup\n{\n\tpublic void Configuration(IAppBuilder app)\n\t{\n\t\t// Any connection or hub wire up and configuration should go here\n\t\tGlobalHost.DependencyResolver.UseRaven(\"raven_backplane\");\n\t\tapp.MapSignalR();\n\t}\n}\n```\n* Add the following lines to Web.config\n```xml\n\u003cconfiguration\u003e\n  \u003cconnectionStrings\u003e\n    \u003cadd name=\"raven_backplane\" connectionString=\"Url = http://localhost:8080/; Database = signalr\" /\u003e\n  \u003c/connectionStrings\u003e\n\u003c/configuration\u003e\n```\n\n### Setting up the Database\n\nRavenDB is easy to use. It will also create the database for you if it does not exist when you first try to connect to it.\nThis will probably fine during development cases. But you may want to tweak it a bit before going live.\n\n#### Compression\n\nRavenDB supports data compression. To be able to use that feature you have to enable to [compression bundle][raven-compression] during the database creation process.\nThis will reduce package size and will probably increase your throughtput.\n\n#### Expiration\n\nThe [expiration bundle][raven-expiration] serves a very simple purpose, it deletes documents whose time have passed.\nYou may use this bundle to autmatically delete old messages from the bus.\n\nYou also have to tell SignalR.RavenDB to use expiration by setting the `Expiration` property during configuration:\n```csharp\nusing Microsoft.AspNet.SignalR;\nusing SignalR.RavenDB;\n\npublic class Startup\n{\n\tpublic void Configuration(IAppBuilder app)\n\t{\n\t\t// Any connection or hub wire up and configuration should go here\n\t\tGlobalHost.DependencyResolver.UseRaven(new RavenScaleoutConfiguration(\"raven_backplane\")\n\t\t{\n\t\t    Expiration = TimeSpan.FromMinutes(10)\n\t\t});\n\t\tapp.MapSignalR();\n\t}\n}\n```\n\n*WARNING:* When master-master replication is set between RavenDB servers then the Expiration bundle should be turned on ONLY on one server, \notherwise conflicts will occur.\n\n[raven-download]: http://ravendb.net/download\n[raven-tutorial]: http://ravendb.net/docs/2.5/intro/ravendb-in-a-nutshell\n[raven-compression]: http://ravendb.net/docs/2.0/server/extending/bundles/compression\n[raven-expiration]: http://ravendb.net/docs/2.0/server/extending/bundles/expiration\n[signalr-nuget]: http://nuget.org/packages/Microsoft.AspNet.SignalR\n[me-nuget]: http://www.nuget.org/packages/SignalR.RavenDB\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesskar%2Fsignalr.ravendb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fesskar%2Fsignalr.ravendb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesskar%2Fsignalr.ravendb/lists"}