News Score: Score the News, Sort the News, Rewrite the Headlines

Implementing State Machines in PostgreSQL · Felix Geisendörfer

Published: July 27, 2017Finite-state machine (FSM) is a wonderful model of computation that has many practical applications. One of my favorites is turning business logic into simple FSMs. For example consider the following requirements for an order management system: Orders must not ship before they are paid. Orders can be canceled, but only if they haven’t shipped yet. An order that has already been paid, needs to be refunded after canceling. Informally, turning such a list of requirements int...

Read more at felixge.de

© News Score  score the news, sort the news, rewrite the headlines