Skip to content

Implementing create, get, update operation using go-kit, and MongoDB replica set.

Notifications You must be signed in to change notification settings

human-doodle/go-kit-crud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-kit-crud

Implements 3 functions:

  1. Create User
  2. Get all users
  3. Update User information

To run:

  1. Run three Mongod processes on ports 27011, 27012 and 27013 (on separate terminals) -> mongo --port 
  2. go build
  3. go run .
 

Creating a 3-Node Replica Set Cluster (on a single machine): Referred from here. In addition to this,execute rs.slaveOk() on the secondary nodes.

In order to view the collections secondary nodes, authenticate by -

  use admin
  db.auth(username,password)
   

About

Implementing create, get, update operation using go-kit, and MongoDB replica set.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages