Moved to https://github.com/tingstad/notes/blob/main/kubernetes.md
Customer -[Address changed]-> Billing
When this is passed as an event, the Customer system does not need to know about the Billing system. The direction of the dependency has been reversed.
https://www.infoq.com/presentations/event-driven-benefits-pitfalls/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.concurrent.TimeUnit; | |
import java.util.function.Supplier; | |
import static java.util.Objects.requireNonNull; | |
public class CachedSupplier<T> implements Supplier<T> { | |
private final Supplier<T> delegate; | |
private final long expiration; | |
private final Supplier<Long> currentTimeSupplier; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log( | |
JSON.stringify( | |
JSON.parse(require('fs').readFileSync(0, 'utf-8')), | |
null, | |
(args => | |
(argsLength => | |
argsLength > 1 | |
? (arg => | |
(num => Number.isInteger(num) ? num : arg | |
)(Number(arg)) |
OpenShift Container Platform
+-------------------------------------------------------------+
| Project (= k8s namespace+) |
| |
| +-------------------------------------------------+ |
| | DeploymentConfig (= k8s ReplicationController+) |+ |
| | - Docker images + ENV & ports || |
| +-------------------------------------------------+| |