Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Sample for Multi-DC Persistence #49

Merged
merged 3 commits into from
Jan 10, 2018
Merged

Conversation

patriknw
Copy link
Member

@patriknw patriknw commented Jan 8, 2018

TODO before merging:

Copy link
Member

@johanandren johanandren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, with two minor things

1. In terminal 4:
* To add a thumbs-up for resource `akka` from user `u1` in DC `eu-west`: `curl -X POST http://0.0.0.0:22551/thumbs-up/akka/u1`
* To add a thumbs-up for resource `akka` from user `u2` in DC `eu-west`: `curl -X POST http://0.0.0.0:22552/thumbs-up/akka/u2`
* To get the users that gave thumbs-up for resource `akka`: `curl http://0.0.0.0:22552/thumbs-up/akka`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

curl to 0.0.0.0, does that really work? Would 127.0.0.1 be safer?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works for me, but 127.0.0.1 is better


speculative-replication.enabled = off

// cross-reading-replication {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a first comment saying why this is commented out?

@patriknw
Copy link
Member Author

unrelated: #51

@patriknw patriknw merged commit 2bbff0a into 2.5 Jan 10, 2018
@patriknw patriknw deleted the wip-persistence-dc-patriknw branch January 10, 2018 17:46
johanandren pushed a commit that referenced this pull request Feb 19, 2018
* Sample for Multi-DC Persistence

* sharding, cassandra, http, protobuf

* translated to java
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants