| Attribute | MySQL | Cassandra | MongoDB | Neo4J |
|---|---|---|---|---|
| Storage engines | Plugins, B-tree primarily LSM only | Plugins, B-tree, or LSM | Native | graph storage |
| Distributed consistency | Focused on consistency | Eventual, secondary to availability | Focused on consistency | Focused on consistency |
| Distributed availability | Secondary to consistency | Focused on availability | Secondary to consistency | Secondary to consistency |
| Latency | Tunable based on durability | Optimized for writes | Tunable for consistency | Optimized |
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
| // Original elements with gaps | |
| const cols = [ | |
| { ts: 2, name: 'two' }, | |
| { ts: 4, name: 'four' }, | |
| { ts: 11, name: 'thirtyone' }, | |
| ] | |
| const step = 1 | |
| // The first and last element for being much more readable |
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
| var snakify = function(text) { | |
| return text.replace(/millenials/ig, "Snake People"); | |
| }; | |
| console.log(snakify("The Millenials are always up to something.")); | |
| var hippify = function(text) { | |
| return text.replace(/baby boomers/ig, "Aging Hippies"); | |
| }; | |
| console.log(hippify("The Baby Boomers just look the other way.")); |
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
| location / { | |
| root /usr/share/nginx/html; | |
| index index.html index.htm; | |
| add_header "Set-Cookie" 'config={"baseUrl":"http://localhost:8081"}'; | |
| } |
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
| version: "3" | |
| services: | |
| vhostfront: | |
| image: repository/vhostmon/vhostfront:latest | |
| environment: | |
| - APP_CONF=config={"baseUrl":"http://localhost:8081"} | |
| ports: | |
| - "8085:80" | |
| command: ["sh", "-c", "envsubst < /etc/nginx/conf.d/deafault.conf.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"] |
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
| location / { | |
| root /usr/share/nginx/html; | |
| index index.html index.htm; | |
| add_header "Set-Cookie" '${APP_CONF}'; | |
| } |
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
| FROM nginx:alpine | |
| ENV APP_CONF="config={}" | |
| WORKDIR /usr/share/nginx/html | |
| COPY --from=vhostfront_build /opt/app/build/ . | |
| COPY nginx-default.conf.template /etc/nginx/conf.d/deafault.conf.template |
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
| image: customregistry/docker-builder:latest | |
| variables: | |
| dockerTag: '$CI_BUILD_REF' | |
| DOCKER_REPO: customregistry | |
| IMAGE_BASE_NAME: redis-faas | |
| IMAGE: $EVISTA_DOCKER_REPO/$IMAGE_BASE_NAME:$CI_BUILD_REF | |
| CONTAINER_NAME: 'fotok-redis-pipeline' | |
| TARGET_DIR_STAGE: /srv/docker/staging/redis-faas | |
| TARGET_DIR_PROD: /srv/docker/prod/redis-faas |
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
| FROM debian:jessie | |
| MAINTAINER balint.sera@gmail.com | |
| # image: customrepo/docker-builder | |
| RUN apt-get update -y | |
| RUN apt-get install -y curl ssh-client | |
| # docker | |
| ENV DOCKER_BUCKET get.docker.com |
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
| { | |
| "Table": { | |
| "AttributeDefinitions": [ | |
| { | |
| "AttributeName": "label", | |
| "AttributeType": "S" | |
| }, | |
| { | |
| "AttributeName": "listID", | |
| "AttributeType": "S" |