HTTP Accelerator Cache: Varnish

HTTP Accelerator Cache: Varnish The Varnish is an open-source reverse proxy server. Its primary purpose is to cache HTTP responses. Besides it also enables modifying HTTP requests/ response to the origin. The Varnish documentation highlights that the server is highly scalable on a multi-core system, efficient (uses mostly kernel services such as kqueue, epoll, memory…

Regex to find 6 repeating characters

Duncan's blog

I wanted to check our codebase for where we had six repeating characters in HTML and CSS for colours, e.g. #FFFFFF for white.  Here’s the regular expression for it, basically blogged here so I can remember where to find it later:

([a-fA-F0-9])1{5}

So [a-fA-F0-9] looks for a single character that is one of the letters A – F (only need to go up to F because we’re dealing with hexadecimal numbers), or the digits 0 – 9.

The ( ) parentheses around that turns it into a backreference.

The 1 then refers to that backreferenced matched, and the {5} says to match it exactly 5 times.

So it’ll find where there’s a single matching character that is then repeated five times.

What I was doing this for was to replace all six character codes (that repeat) for colours with three character codes (because #FFF is equivalent to #FFFFFF). So to…

View original post 92 more words

Discussion on Microservices Integration

Discussion on Microservices Integration Microservices is a distributed system pattern and components need to communicate through the network. If communication data includes internal technical details of participating components, the system loses the property of loose-coupling. If a change in one service causes changes in many other services, we lose the property of high-cohesion. An unreliable…

Building a Video Conferencing Service With WebRTC

What I learned in WebRTC It’s a peer to peer communication protocol to transfer media, text, and data. It does need a server for the control path that includes device discovery and agreement. The process is called signaling. The signaling server is free of any protocol and just needs to make two or more WebRTC…

How network work in docker-compose?

How network works in docker-compose? docker-compose creates a set of containers, brings them up along with a private network. The network is very interesting because a private network is essential to compose & test a microservice bases system. I found the post https://medium.com/@caysever/docker-compose-network-b86e424fad82 quite useful. Post Highlights docker-compose creates a default network, if no network…

etcd: A Reliable Distributed KV Store

Pronounced et-cee-dee Persistent KV store Uses Raft protocol to maintain data consistency Developed in Go Popular Use case: Kubernetes, Consul Installation (OSX) Step 1$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null Step 2$ brew install etcd Step 3$ which etcd /usr/local/bin/etcd Start Server and Make Requests Step 4$ /usr/local/bin/etcd [WARNING] Deprecated '--logger=capnslog' flag…

goto: Modern Continuous Delivery

The presentation https://www.youtube.com/watch?v=wjF4X9t3FMk is a great touch base on microservices deployment and development flow. The key ideas are the following: Security is needed at every step of the microservice lifecycle. End to end testing is essential. Production test is also important using a canary, red-blue strategy. Continuous integration and deployment are best modeled in a…

%d bloggers like this: