Summary
commandin K8s is analogous toENTRYPOINTin Dockerargsin K8s is analogousCMDin Docker
In Docker:
CMD has three forms
Postgres has built-in mechanism for notifying clients (listeners) of events such as INSERT, UPDATE, and DELETE on tables.
Note that for this to work, a listener must have a dedicated direct connection to Postgres. Connection poolers like pgbouncer would not work.
First, lets go over some key Postgres components:
triggers - automatically executes some function when an event on a table occurschannels - a communication mechanism identified by a string in postgresA list of patterns for stubbing out dependencies in unit tests.
Problem: We have a dependency that we don't want to actually run in our unit tests.
Define an interface that abstracts this dependency, and implement a stub struct that implements this interface, then swap this into your struct at test time.
| """ | |
| Credit: https://youtu.be/MCs5OvhV9S4 | |
| Example concurrent server impelmented with coroutines not threads. | |
| Main idea is to avoid being blocked by IO. Although we can achieve this with threads, | |
| we want to use coroutines instead, because threads are expensive. | |
| A coroutine is a function that yields control to the caller before a blocking call. | |
| An event loop continuously polls for coroutines and runs them. |
| # First install requirements: | |
| # zsh | |
| # oh-my-zsh | |
| # fzf | |
| git clone --bare [email protected]:albscui/dotfiles.git $HOME/.dotfiles | |
| alias dotfiles='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME' | |
| dotfiles config status.showUntrackedFiles no |
Here is a high-level explanation of the GitHub branch-based workflow.
Below, are step by step instructions for implementing this workflow.
You can create branches either remotely or locally.