{"id":17337855,"url":"https://github.com/edwinvw/nats-demos","last_synced_at":"2025-09-03T00:44:34.494Z","repository":{"id":89604035,"uuid":"209247855","full_name":"EdwinVW/nats-demos","owner":"EdwinVW","description":"This repo contains the code for the demos that I use during talks I give about NATS and NATS Streaming.","archived":false,"fork":false,"pushed_at":"2019-12-11T06:27:50.000Z","size":15341,"stargazers_count":21,"open_issues_count":0,"forks_count":11,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-14T18:52:13.016Z","etag":null,"topics":["distributed-systems","nats","nats-streaming"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":false,"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/EdwinVW.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,"zenodo":null}},"created_at":"2019-09-18T07:38:57.000Z","updated_at":"2025-04-04T17:39:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"9d1b7d26-c5f4-4535-ad6d-469725430271","html_url":"https://github.com/EdwinVW/nats-demos","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/EdwinVW/nats-demos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EdwinVW%2Fnats-demos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EdwinVW%2Fnats-demos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EdwinVW%2Fnats-demos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EdwinVW%2Fnats-demos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EdwinVW","download_url":"https://codeload.github.com/EdwinVW/nats-demos/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EdwinVW%2Fnats-demos/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271923006,"owners_count":24844232,"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-08-24T02:00:11.135Z","response_time":111,"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":["distributed-systems","nats","nats-streaming"],"created_at":"2024-10-15T15:36:24.641Z","updated_at":"2025-08-24T18:36:51.807Z","avatar_url":"https://github.com/EdwinVW.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NATS demos\nThis repo contains the code for the demos that I use during talks I give about NATS and NATS Streaming.\n\nThe slides of a talk I gave about NATS can be found [here](https://edwinvw.github.io/presentations/nats.html).\n\nThe repo contains the following demo projects:\n- NATS\n  - Basic messaging demos (pub/sub, request/response, queue-groups, wildcards).\n- NATS-Streaming\n  - BasicMessaging: basic messaging demo focussed on replaying messages.\n  - Store: simple event-based distributed book-store application using NATS and NATS-Streaming.\n\nWithin every demo folder I've included some Powershell scripts to start the necessary components. \n\n\nThe demos have some **prerequisites**:\n1. All scripts that start NATS or NATS Streaming assume that the folders where you have installed the NATS and NATS Streaming executables are added to the `PATH` environment variable. If for some reason you don't want that, just change the path to the executable in the `start-nats.ps1`, `start-nats-streaming.ps1`, `start-local-cluster.ps1` and `add-server-to-cluster.ps1`scripts.\n2. The store demo assumes there is a SQL Server running on your local machine on port 1434. If you want to use a different host or port, change the connection-string in the 3 DBContext classes in the *OrderProcesingService*, *OrdersQueryService* and *ShippingService*. Also change the host and port in the `reset.ps1` script.\n3. The store demo assumes there's a folder `D:\\Temp\\NATSDemos\\Store`. It uses this as the file-location for the file-system based storage provider for NATS Streaming. If you want to use a different folder, create it and change the folder in the `start-nats.ps1` script and the `reset.ps1` script. \n4. If you want to use [NATS Board](https://github.com/devfacet/natsboard) for monitoring, you can use the `start-monitor.ps1` script in the Store demo folder. This script assumes that have installed NATS Board (and node/npm) by executing `npm install natsboard -g`.\n\n\u003eDisclaimer: the code is **NOT production grade** and only for demo purposes and for experimenting with NATS and NATS Streaming.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedwinvw%2Fnats-demos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedwinvw%2Fnats-demos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedwinvw%2Fnats-demos/lists"}