- Head to https://docs.docker.com/docker-for-mac/
- Download the latest docker binary from https://download.docker.com/mac/stable/Docker.dmg
- Install it (drag and drop)
- Go to applications, and click on the Docker icon, it will walk you through the rest of the setup.
- You can notice the docker whale animating in the toolbar at the top right of your mac as it initalizes.
- You can click that whale to see the current status of docker engine.
- What has been installed is the docker engine (to manage and run containers), docker machine (the host) and docker compose.
- We will also need virtualbox, so install it from https://www.virtualbox.org/wiki/Downloads
import java.util.HashMap; | |
import java.util.Iterator; | |
import java.util.Map; | |
public class ArraySumWithMap { | |
private Map<Integer, Integer> numbers = new HashMap<Integer, Integer>(); | |
/** |
public static String binary(int input){ | |
StringBuilder builder = new StringBuilder(); | |
int numerator = input; | |
while(true){ | |
int divisor = numerator/2; | |
int remainder = numerator%2; | |
builder.append(remainder+""); | |
numerator = divisor; | |
if(divisor==1){ | |
builder.append("1"); |
- Single database running on single instance
- Every record has a
tenant_id
as a part of the composite primary key. - Application will need to provide this
tenant_id
for every query as a part of the where clause
- One database, one instance
- Relatively easy to run cross-tenant queries
import java.io.*; | |
import java.util.*; | |
import java.text.*; | |
import java.math.*; | |
import java.util.regex.*; | |
public class Solution { | |
public static void main(String[] args) { | |
Scanner in = new Scanner(System.in); |
Lambda is the key enabler and a core AWS component for serverless computing. Lets you run the code you want, without worrying about the underlying infrastructure and provisioning. It is also cost efficient, as there are no instances that are in running state but idle. Lambda handles scaling up and scaling down as needed, transparently to the customer.
-
Event Source - Changes in state of the resources or data, or any events triggered explicitly or implicitly. A large number of AWS services can act as Event Sources - Like S3 (Object PUT, DELETE..), DynamoDB, IoT, CloudFormation, CloudWatch, SNS, API Gateway and Cron schedule to name a few.
-
Function - The piece of code that would be run when that event occurs. The function can access any services downstream if needed. Currently Supported languages are Node.js, Python, Java 8 and C#.
- Stateless, event-based file/data processing.
<?xml version='1.0' encoding='UTF-8'?> | |
<maven2-moduleset plugin="maven-plugin@2.15.1"> | |
<actions/> | |
<description></description> | |
<keepDependencies>false</keepDependencies> | |
<properties/> | |
<scm class="hudson.plugins.git.GitSCM" plugin="git@3.2.0"> | |
<configVersion>2</configVersion> | |
<userRemoteConfigs> | |
<hudson.plugins.git.UserRemoteConfig> |
<?xml version='1.0' encoding='UTF-8'?> | |
<project> | |
<actions/> | |
<description></description> | |
<keepDependencies>false</keepDependencies> | |
<properties> | |
<hudson.model.ParametersDefinitionProperty> | |
<parameterDefinitions> | |
<hudson.model.StringParameterDefinition> | |
<name>Build</name> |
You can download the PDF of the questions here
- Which of the following statements about SQS is true?
- A. Messages will be delivered exactly once and messages will be delivered in First in, First out order
- B. Messages will be delivered exactly once and message delivery order is indeterminate
- C. Messages will be delivered one or more times and messages will be delivered in First in, First out order
- D. Messages will be delivered one or more times and message delivery order is indeterminate
package com.marqeta.mqpay; | |
import java.util.HashMap; | |
import java.util.Map; | |
public class Main { | |
public static void main(String[] args) { | |
System.out.println("via Reflection took " + instantiateViaReflection() + " milliseconds"); | |
System.out.println("via New took " + instantiateAsNew() + " milliseconds"); |