userprofile

command
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

README

Prerequisites:

First install golang-migrate CLI.
https://github.com/golang-migrate/migrate/tree/master/cmd/migrate

Also install docker.

Steps:

cd ~/pgranger/example/userprofile
make dockerup
make migrateup

go run main.go --configpath=$(pwd)/config.json

make migratedown
make dockerdown

Documentation

Overview

In this example, we have a user profile application which has its sharding key user_id spreaded over 4 ranges on 2 host shards. We then perform point data access and fan out on the shards.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL