Synchronous request/response | Asynchronous request/response | Asynchronous messages or events | |
---|---|---|---|
Business level | Synchronous | Synchronous | Asynchronous |
Technical communication style | Synchronous | Asynchronous | Asynchronous |
Example | HTTP | AMQP, JMS | AMQP, Apache Kafka |
This file contains 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
///usr/bin/env jbang "$0" "$@" ; exit $? | |
//DEPS com.microsoft.playwright:playwright:1.18.0 | |
//DEPS org.testcontainers:testcontainers:1.16.3 | |
//DEPS org.slf4j:slf4j-nop:1.7.35 | |
import static java.lang.System.out; | |
import org.testcontainers.containers.GenericContainer; | |
import org.testcontainers.containers.wait.strategy.Wait; |
This file contains 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
class OpenSSLContainer : GenericContainer<OpenSSLContainer>( | |
ImageFromDockerfile().withDockerfileFromBuilder { it | |
.from("ubuntu:20.04") | |
.env("DEBIAN_FRONTEND", "noninteractive") | |
.env("LC_ALL", "C.UTF-8") | |
.run("apt-get update && apt-get install -y openssl") | |
.run("openssl version") | |
//we need a running container to call `execInContainer` commands | |
.cmd("/bin/bash -c 'while true; do sleep 10; done'") | |
}) |
This file contains 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
//DEPS org.testcontainers:testcontainers:1.15.3 | |
import com.github.dockerjava.api.command.InspectContainerResponse; | |
import org.junit.Test; | |
import org.testcontainers.containers.GenericContainer; | |
import org.testcontainers.containers.wait.strategy.Wait; | |
import org.testcontainers.images.builder.Transferable; | |
import java.nio.charset.StandardCharsets; |
This file contains 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
import org.springframework.core.convert.converter.Converter; | |
import org.springframework.http.HttpHeaders; | |
import org.springframework.http.HttpMethod; | |
import org.springframework.http.MediaType; | |
import org.springframework.http.RequestEntity; | |
import org.springframework.security.oauth2.client.endpoint.OAuth2ClientCredentialsGrantRequest; | |
import org.springframework.security.oauth2.client.endpoint.OAuth2ClientCredentialsGrantRequestEntityConverter; | |
import org.springframework.security.oauth2.client.registration.ClientRegistration; | |
import org.springframework.security.oauth2.core.ClientAuthenticationMethod; | |
import org.springframework.security.oauth2.core.endpoint.OAuth2ParameterNames; |
This note based on the presentation of eldermoraes.
https://www.youtube.com/watch?v=R4kxLsXkAE4.
- Long build time
This file contains 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
node_modules/ | |
README.md |
This file contains 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 node: 14-alpine as build | |
ENV NEXT_TELEMETRY_DISABLED=1 | |
RUN apk add --no-cache libc6-compat | |
WORKDIR /app | |
COPY .. | |
RUN yarn install && \ | |
yarn build | |
FROM node: 14-alpine |
This file contains 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
subprojects { subproject -> | |
// ... | |
plugins.withId('org.springframework.boot') { | |
springBoot { | |
bootJar { | |
layered { | |
// application follows Boot's defaults | |
application { | |
intoLayer("spring-boot-loader") { |
NewerOlder