Time clock and the ordering of events in a distributed system
Consensus on Transaction Commit
An empirical study on the correctness of formally verified distributed systems
| #!/bin/bash | |
| ## ------------------ | |
| ## Bahmni Code Repos | |
| ## ------------------ | |
| echo "Creating folder: bahmni-global" | |
| mkdir bahmni-global | |
| cd bahmni-global/ |
Designing Event-Driven Systems book by Ben Stopford contains a lot of useful links to papers, books, documentation and definitions related to event driven design and Kafka. I just extracted them as reference for the future and added some groups to show them better.
You can read the book for free
Picking the right architecture = Picking the right battles + Managing trade-offs
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
| var mongoose = require('mongoose'); | |
| var Schema = mongoose.Schema; | |
| var ObjectId = mongoose.Types.ObjectId; | |
| console.log('Running mongoose version %s', mongoose.version); | |
| var UserSchema = new Schema({ | |
| name : String, | |
| posts : [{ | |
| type : Schema.Types.ObjectId, |
| //gulp & plugins | |
| var gulp = require('gulp'); | |
| var gutil = require('gulp-util'); | |
| var jshint = require('gulp-jshint'); | |
| var browserify = require('gulp-browserify'); | |
| var jade = require('gulp-jade'); | |
| var stylus = require('gulp-stylus'); | |
| var mocha = require('gulp-mocha'); | |
| var nodemon = require('gulp-nodemon'); | |
| var livereload = require('gulp-livereload'); |
| var gulp = require('gulp'), | |
| concat = require('gulp-concat'), | |
| plumber = require('gulp-plumber'), | |
| server = require('tiny-lr')(), | |
| refresh = require('gulp-livereload'), | |
| mocha = require('gulp-mocha'), | |
| stylus = require('gulp-stylus'), | |
| notify = require('gulp-notify'), | |
| nodemon = require('gulp-nodemon'), | |
| jshint = require('gulp-jshint'), |