{"id":29840612,"url":"https://github.com/graphform/nstream-persistence-examples","last_synced_at":"2025-07-29T14:17:29.334Z","repository":{"id":235613988,"uuid":"788377566","full_name":"graphform/nstream-persistence-examples","owner":"graphform","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-04T00:14:07.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-06-23T03:54:30.656Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/graphform.png","metadata":{"files":{"readme":"README.md","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,"zenodo":null}},"created_at":"2024-04-18T09:47:54.000Z","updated_at":"2025-06-20T22:34:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"a2b6d128-270e-4a09-8349-a8b513339fc6","html_url":"https://github.com/graphform/nstream-persistence-examples","commit_stats":null,"previous_names":["nstreamio/nstream-persistence-examples","graphform/nstream-persistence-examples"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/graphform/nstream-persistence-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphform%2Fnstream-persistence-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphform%2Fnstream-persistence-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphform%2Fnstream-persistence-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphform%2Fnstream-persistence-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/graphform","download_url":"https://codeload.github.com/graphform/nstream-persistence-examples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphform%2Fnstream-persistence-examples/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267701699,"owners_count":24130458,"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-29T02:00:12.549Z","response_time":2574,"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":"2025-07-29T14:16:51.012Z","updated_at":"2025-07-29T14:17:29.328Z","avatar_url":"https://github.com/graphform.png","language":"Java","readme":"# Running the Examples\n\nIn all of the following examples, the server can be terminated from the terminal with `Ctrl-C`.\n\n## Cassandra\n\nThe Cassandra example applications expect a Cassandra instance to be running at `localhost` on the  default ports. The\nCassandra store uses the Datastax Cassandra driver which can be configured by placing a suitable `applicaiton.conf`\nclient configuration file onto the classpath.\n\nTo run the examples with gradle, run the following from within `cassandra-example` or `cassandra-kv-example`:\n\n```shell\n../gradlew run\n```\n\nThe `cassandra-example` project uses the direct Cassandra store implementation (changes to the state are written into\nCassandra immediately and asynchronously). Alternatively, the `cassandra-kv-example` uses Cassandra via the key-value\nstore adapter. Here, changes are batched up in memory and periodically flushed to Cassandra, synchronously.\n\nThe Swim configuration files for these examples are found in [cassandra-example](cassandra-example/src/main/resources/server.recon)\nand [cassandra-kv-example](cassandra-kv-example/src/main/resources/server.recon).\n\n## Ignite\n\nThere are two Ignite example projects, `ignite-example` and `ignite-standalone-example`. The `ignite-example` project\nis fully configurable (and requires you to set up your own `IGNITE_HOME` directory and Swim configuration files).\nAlternatively, the `ignite-standalone-example` will create its own `IGNITE_HOME` in a temporary folder and create a Swim\nconfiguration file that points at this.\n\nFor the stand-alone example, run the following in the `ignite-standalone-example` directory:\n\n```shell\n../gradlew run\n```\n\nThe `ignite-example` project can be run in two ways. First, one can instruct it to initialize the Ignite cluster\n(without starting the Swim server). Subsequently, it can be run in such as way as to start the Ignite cluster and then\nconnect the Swim sever to it.\n\nTo initialize the cluster, run the following in the `ignite-example` directory.\n\n```shell\n../gradlew run --args=\"--init-only --ignite /path/to/ignite.xml --home /path/to/ignite-home\"\n```\n\nAdditionally, `--wait n` can be passed to control how long the application will wait for the cluster to start. This is\nin seconds and the default value is `10`.\n\nTo run the swim server, then run:\n\n```shell\n../gradlew run --args=\"--home /path/to/ignite-home --swim /path/to/server.recon\"\n```\n\nSee the [Apache Ignite documentation](https://ignite.apache.org/docs/latest/) for information on configuring Ignite.\n\n## RocksDB\n\nThe RocksDB example will create a database in the local filesystem (at `/tmp/example-app/`). If you need to alter this,\nit is configured in the [Swim configuration file](rocksdb-example/src/main/resources/server.recon).\n\nTo start it, run the following in the `rocksdb-example` directory:\n\n```shell\n../gradlew run\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphform%2Fnstream-persistence-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgraphform%2Fnstream-persistence-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphform%2Fnstream-persistence-examples/lists"}