simplebank

command module
v0.0.0-...-682a0e1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: MIT Imports: 6 Imported by: 0

README

simplebank

This project is a simple banking app that uses a microservice architecture and Go on the backend.

 

The following principles were followed during DB design.

  • Atomicity: Either all operations complete successfully or the transaction fails and db is unchanged.
  • Consistency: The DB state must be valid after the transaction and all constraints satisfied.
  • Isolation: Concurrent transactions must not affect each other.
  • Durability: Data written by a successful transaction must be recorded in persistent storage.

This was done to avoid the following read phenomena:

  • Dirty reads caused by read-uncommitted isolation level
  • Non-repeatable reads
  • Phantom reads
  • Serialization Anomaly

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
db
mock
Package mockdb is a generated GoMock package.
Package mockdb is a generated GoMock package.

Jump to

Keyboard shortcuts

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