-
Distrubute locker with Container
One common issue with distrubuted locker is that if the process die somehow, who/how/when should we release the lock.A noraml approach will be have a timeout and if the process doesn’t hand back the lock within a period of time, the serivce just t...…
-
Behavioral Patterns - Chain of Responsibility, Command
CHAIN OF PESPONSIBILITYWhen a request comes, chain the receiving objects and pass the request along the chain until an object handles it.Scenario more than one object may handle a request set of objects that can handle the rest should be specifi...…
-
Design Pattern for container
Notes from this Design patterns for container-based distributed systemsA few interesting ideas and patterns for container based system learns from reading the article above.Single-container management patternsUpwardHave http-based (separate port, ...…
-
Structural Patterns - Part 2
DECORATORAdd additional responsibilities to an object dynamically. The decorator can be reused and shared.Scenario add responsibilities to individual objects dynamically and transparently without affecting the other objects for responsibilities ...…
-
Structural Patterns - Part 1
ADAPTERConvert the interface of a class into another interface which clients expect. (AKA Wrapper)Scenario You want to use existing class but its interface doesn’t match the one you need. create reusable class that cooperates with unrelated or u...…