Publish to my blog (weekly)

Building a CQRS/ES web application in Elixir using Phoenix - Binary Consulting The event stream is the canonical source of truth. t is a perfect audit log A projection is an event handler that receives every persisted event from the event store. It executes queries against the database to add, update, and delete data. Event handlers run concurrently and are eventually consistent. CQRS An example of this is using different  database access techniques for read and update. Daem...

Publish to my blog (weekly)

Git - 수정하고 저장소에 저장하기 이 benchmarks.rb 파일은 Changes not staged for commit 에 있다. 이것은 수정한 파일이 Tracked 상태이지만 아직 Staged 상태는 아니라는 것이다. Staged 상태로 만들려면 git add 명령을 실행해야 한다. git add 는 파일을 새로 추적할 때도 사용하고 수정한 파일을 Staged 상태로 만들 때도 사용한다. git add 를 실행하여 benchmarks.rb 파일을 Staged 상태로 만들고 git status 명령으로 결과를 확인해보자: 헉! benchmarks.rb가 Staged 상태이면서 동시에 Unstaged 상태로 나온다. 어떻게 이런 일이 가능할까? git add 명령을 실행하면 Git은 파일을 바로 Staged 상태로 만든다. 지금 이 시점에서 커밋을 하면 git commit 명령을 실행하는 시점의 버전이 커밋되는 것이 아니라 마지막으로 git add 명령을 실행했을 때의 버전이 커밋된다. 그러니까 git add 명령을 실행한 후에 또 파일을 수정하면 git add 명령을 다시 실행해서 최신 버전을 Staged 상태로 만들어야 한다: $ git diff 이 명령은 워킹 디렉토리에 있는 것과 Staging Area에 있는 것을 비교한다. 그래서 수정하고 아직 Stage하지 않은...

Publish to my blog (weekly)

How to clear the DNS cache – Unihost.FAQ sudo apt install nscd sudo /etc/init.d/nscd restart Posted from Diigo . The rest of my favorite links are here .

Publish to my blog (weekly)

Modelling Data in Neo4j: Labels vs. Indexed Properties A flagged indexed property   A dedicated label Posted from Diigo . The rest of my favorite links are here .

Publish to my blog (weekly)

Chapter 2. Tutorial - Neo4j-OGM - An Object Graph Mapping Library for Neo4j v3.1 Our college will contain departments , each of which offer various subjects taught by a teacher .  Students enroll for courses or classes that teach a subject . Posted from Diigo . The rest of my favorite links are here .

Publish to my blog (weekly)

Data Modeling Concepts and Techniques | Neo4j A label is a named graph construct that is used to group nodes into sets. All nodes labeled with the same label belongs to the same set. Many database queries can work with these sets instead of the whole graph, making queries easier to write and more efficient. A node may be labeled with any number of labels, including none, making labels an optional addition to the graph. Since a relationship always has a start and end node, you cannot delete a node without also deleting its associated relationships. relationships nouns nodes and labels ...

Publish to my blog (weekly)

What is Inheritance in Ruby? - RubyGuides This says that your subclasses must be able to be used in place of your base class. Posted from Diigo . The rest of my favorite links are here .