Skip to content

Instantly share code, notes, and snippets.

View ajoshi31's full-sized avatar
🤥
Git Push Origin Master

Atul Joshi ajoshi31

🤥
Git Push Origin Master
  • Nthgram Technologies Private Limited
  • Bangalore
View GitHub Profile

Rough Notes about CQRS and ES

Once upon a time…

I once took notes (almost sentence by sentence with not much editing) about the architectural design concepts - Command and Query Responsibility Segregation (CQRS) and Event Sourcing (ES) - from a presentation of Greg Young and published it as a gist (with the times when a given sentence was heard).

I then found other summaries of the talk and the gist has since been growing up. See the revisions to know the changes and where they came from (aka the sources).

It seems inevitable to throw Domain Driven Design (DDD) in to the mix.

@ajoshi31
ajoshi31 / rest-api-response-format.md
Created February 25, 2023 10:33 — forked from igorjs/rest-api-response-format.md
REST API response format based on some of the best practices
@ajoshi31
ajoshi31 / prepareElastic.js
Created April 28, 2020 13:36 — forked from stekhn/prepareElastic.js
Creates and prepares an Elasticsearch index, using the Node.js client. Closes the index before putting settings and mappings. The response and error handlers are optional, remove them if necessary.
var elastic = require('elasticsearch');
var client = new elastic.Client({ host: 'localhost:9200' });
var index = 'myindex';
var type = 'document';
(function init() {
Promise.resolve()
.then(deleteIndex, handleError)