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
using KaffeineLabs.MQ.Outbox; | |
using KaffeineLabs.Testcontainers.PostgreSql; | |
using FluentAssertions; | |
using Microsoft.EntityFrameworkCore; | |
using Npgsql; | |
using Xunit.Abstractions; | |
namespace KaffeineLabs.MQ.Tests.Outbox; | |
public class LearnPostgresListenNotifyTest(PostgreSqlFixture postgreSql, ITestOutputHelper testOutputHelper) |
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
package payment.exposed | |
import org.jetbrains.exposed.sql.* | |
import org.jetbrains.exposed.sql.transactions.transaction | |
import org.junit.jupiter.api.BeforeEach | |
import org.testcontainers.containers.PostgreSQLContainer | |
import org.testcontainers.junit.jupiter.Container | |
import org.testcontainers.junit.jupiter.Testcontainers | |
import org.testcontainers.utility.DockerImageName | |
import payment.Payment |
Examples for the "Object-oriented event sourcing" article:
All gists:
-
Object-oriented event sourcing
These are code examples for the “Deriving state from events” article:
All gists:
-
Deriving state from events
These are code examples for the “Functional event sourcing example in Kotlin” article:
All gists:
-
Functional event sourcing example in Kotlin
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
package com.kaffeinelabs.function; | |
import java.util.function.Supplier; | |
public class Singleton<T> implements Supplier<T> { | |
private final Supplier<? extends T> factory; | |
private T instance = null; | |
private Singleton(final Supplier<? extends T> factory) { | |
this.factory = factory; |
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
package com.kaffeinelabs.debezium; | |
import io.debezium.testing.testcontainers.DebeziumContainer; | |
import org.testcontainers.containers.GenericContainer; | |
import org.testcontainers.containers.KafkaContainer; | |
import org.testcontainers.containers.Network; | |
import org.testcontainers.containers.PostgreSQLContainer; | |
import org.testcontainers.lifecycle.Startable; | |
import org.testcontainers.utility.DockerImageName; |
Based on docker-compose.yml from OpenSearch: https://opensearch.org/samples/docker-compose.yml
terraform init
terraform plan
terraform apply
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
ARG PYTHON_VERSION=3.10 | |
ARG BASE_IMAGE=python:${PYTHON_VERSION}-slim | |
ARG MITEMP_TARGET_DIR=/mitemp2 | |
FROM ${BASE_IMAGE} AS builder | |
ARG MITEMP_TARGET_DIR | |
ENV PATH=$MITEMP_TARGET_DIR/bin:$PATH | |
RUN apt-get update && apt-get install -y --no-install-recommends build-essential gcc git libglib2.0-dev && rm -rf /var/lib/apt/lists/* |
NewerOlder