Basic Docker commands

  1. docker build -t friendlyname . # Create image using this directory's Dockerfile 2. docker run -p 4000:80 friendlyname # Run "friendlyname" mapping port 4000 to 80 3. docker run -d -p 4000:80 friendlyname # Same thing, but in detached mode 4. docker container ls # List all running containers 5. docker container ls … Continue reading Basic Docker commands


Queue based load leveling pattern

When to use this pattern This pattern is useful to any application that uses services that are subject to overloading. This pattern isn't useful if the application expects a response from the service with minimal latency. Context and Problem If a Service is subjected to heavy loads, it can cause performance  or  reliability issues. If … Continue reading Queue based load leveling pattern

Builder Pattern| Object Creational

Intent Seperate the construction of complex object from its representation so that the same construction process can create different representations. Applicability Use the Builder pattern when The algorithm for creating a complex object should be independent of the parts that make up the object and how they're assembled. The construction process must allow different representaions … Continue reading Builder Pattern| Object Creational

Prototype | Object Creational

Intent Specify kind of objects to create using a prototypical instance, and create new objects by copying this prototype. Applicability Use the Prototype pattern when  a system should be independent of how its products are created, composed, and represented; and When the classes to instantiate are specified at the run-time, for example,  by dynamic loading; … Continue reading Prototype | Object Creational

Creational Patterns

Creational design patterns abstract the instantiation process. They help make a system independent of how its objecsts are created, composed and represented. A class creational pattern uses inheritance to vary the class that's instantiated, whereas an object creational pattern will delegate instantiation to another object.   Creational patterns become important as systems evolve to depend … Continue reading Creational Patterns

Command – Object Behavioral

Intent Encapsulate a request as an object, thereby letting you parameterize clients with different requests, queue or log requests, and support undoable operations. Also Known As Action, Transaction Motivation Sometime it's necessary to issue requests to objects without knowing anything about the operation being requested or the receiver of the request. Applicability Use command pattern … Continue reading Command – Object Behavioral

Abstract Factory – Object Creational

Intent Provide an iterface for creating families of related or dependent objects without specifying their concreate classes. Also Known As Kit Applicability Use the Abstract Factory pattern when, a System should be independent og how its products are created, composed and represented. a System should be configured with one of multiple families of products a … Continue reading Abstract Factory – Object Creational