Where Does The Work Belong In The Data Divide?

  1. The database layer can be scaled horizontally for any given query like our application layer.
  2. The database layer can execute the exact same code that our application layer can execute with the same performance characteristics, if desired.
  1. Request the relevant data from N2 to N1, then execute the code using the relevant data from the request and return the result.
  2. Grab the relevant data from the request to N1 and push it and the code to execute to N2, then execute the code and push the result from N2 back to N1.
Toption1 = Tdata + Texecute
Toption2 = Tclosure + Texecute + Tresult
Tclosure + Tresult < Tdata
Tclosure + (Tdata + Tclosure) / 2 < Tdata
(3/2) * Tclosure < (1/2) * Tdata
3 * Tclosure < Tdata
  1. A cluster of nodes in a consistent or rendezvous hash ring sharing (probably) ephemeral data with each other.
  2. Two or more microservices written in the same language with one querying the other for work to handle.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store