| 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
| apiGateway: | |
| Type: "AWS::ApiGateway::RestApi" | |
| Properties: | |
| Name: "example-api-gw" | |
| Description: "Example API" | |
| ProxyResource: | |
| Type: "AWS::ApiGateway::Resource" | |
| Properties: | |
| ParentId: !GetAtt apiGateway.RootResourceId |
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
| const rewired = rewire('../index.js') | |
| const orig = require('../service/SESMail') | |
| orig.prototype.send = () => { return Promise.resolve() } | |
| rewired.__set__({ | |
| 'SESMail': orig | |
| }) | |
| expect(rewired.handler.bind(null, testEvent, null)).to.not.throw() | |
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" |
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 [email protected] | |
| # 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
| 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 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
| 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
| 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" 'config={"baseUrl":"http://localhost:8081"}'; | |
| } |
NewerOlder