Also might be worth checking out my other gist comparing react/redux async libraries.
This was interesting read on axios vs fetch api with regard to api error handling, XRSF, etc. In addition the specification doesn't have a way of dealing with timeouts or cancellation, so you need to do a fair amount of promise racing to do that. It's the standard, and they are working on it. See here and here.
This comparison of Ajax libraries is interesting, so I added cancellation and timeout columns to it down below.
This example show how-to setup a very simple Swarm cluster enabled with Weave Net.
## Infratructure
There are two hosts that have a recent version of Docker Engine running.
These hosts are named host1
and host2
, and might have the following in
/etc/hosts
or you just substitute IP addresses in the commands shown below.
- What do Etcd, Consul, and Zookeeper do? | |
- Service Registration: | |
- Host, port number, and sometimes authentication credentials, protocols, versions | |
numbers, and/or environment details. | |
- Service Discovery: | |
- Ability for client application to query the central registry to learn of service location. | |
- Consistent and durable general-purpose K/V store across distributed system. | |
- Some solutions support this better than others. | |
- Based on Paxos or some derivative (i.e. Raft) algorithm to quickly converge to a consistent state. | |
- Centralized locking can be based on this K/V store. |
Bootstrap_vs_Foundation_Google.png
This is just a picture of this link from April 13, 2017
This is just a picture of this link from April 13, 2017
This is intended to be executed like this: | |
./build.sh & | |
docker run --log-driver=fluentd --log-opt tag="docker.{{.ID}}" --log-opt fluentd-address="$(docker inspect -f '{{.NetworkSettings.IPAddress}}' custom-docker-fluent-logger):24224" python:alpine echo Hello |
This is an example of making fluentd count log messages and emit to graphite.
Run in a terminal:
# start graphite statsd
docker run -d --name graphite --restart=always -p 80:80 -p 2003-2004:2003-2004 -p 2023-2024:2023-2024 -p 8125:8125/udp -p 8126:8126 hopsoft/graphite-statsd
# start fluentd container
./build.sh
(Also, more thoughts are here )
In working out my thoughts, this is borrowing from several sources, notably:
Feature Smackdown: Apache Solr vs Elasticsearch
Google Trend: Elasticsearch vs Apache Solr
Image above from April 20