- Pro: Both are production ready
- Pro: Can handle any throughput we will see
- Pro: More feature rich
- Healthchecks
- DNS and HTTP API available to map endpoints
- Lots of service discovery built in
- Pro: Solution could be used in more than one place (bld/prod/etc..)
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
(defn sha-512 | |
"Return the SHA-512 of the given string" | |
[data] | |
(let [md (. java.security.MessageDigest getInstance "SHA-512")] | |
(. md update (.getBytes data)) | |
(let [bytes (. md digest)] | |
(reduce #(str %1 (format "%02x" %2)) "" bytes)))) | |
(defn hash-repeatedly | |
"Hash the given string n number of times" |
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
<profile> | |
<id>fuse-ea</id> | |
<repositories> | |
<repository> | |
<id>ea.fusesource.org</id> | |
<name>FuseSource Release Repository</name> | |
<url>http://repo.fusesource.com/nexus/content/groups/ea</url> | |
<snapshots> | |
<enabled>false</enabled> | |
</snapshots> |
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
#cloud-config | |
--- | |
write_files: | |
- path: /opt/bin/waiter.sh | |
owner: root | |
content: | | |
#! /usr/bin/bash | |
until curl http://127.0.0.1:4001/v2/machines; do sleep 2; done | |
coreos: |