diff --git a/Dockerfile b/Dockerfile
index 2082e259e3..4073122b82 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -26,5 +26,6 @@ HEALTHCHECK --interval=5s --timeout=3s --retries=5 \
ARG VERSION=latest
ENV FLOCI_VERSION=${VERSION}
+ENV FLOCI_STORAGE_PERSISTENT_PATH=/app/data
ENTRYPOINT ["java", "-jar", "quarkus-app/quarkus-run.jar"]
diff --git a/Dockerfile.jvm-package b/Dockerfile.jvm-package
index 04ed8ac290..4cca493781 100644
--- a/Dockerfile.jvm-package
+++ b/Dockerfile.jvm-package
@@ -4,6 +4,7 @@ ARG VERSION=latest
ARG INSTALL_AWS_CLI=false
ENV FLOCI_VERSION=${VERSION}
+ENV FLOCI_STORAGE_PERSISTENT_PATH=/app/data
WORKDIR /app
diff --git a/Dockerfile.native b/Dockerfile.native
index e6d52820d7..815c105154 100644
--- a/Dockerfile.native
+++ b/Dockerfile.native
@@ -30,6 +30,7 @@ HEALTHCHECK --interval=5s --timeout=3s --retries=5 \
ARG VERSION=latest
ENV FLOCI_VERSION=${VERSION}
+ENV FLOCI_STORAGE_PERSISTENT_PATH=/app/data
COPY --from=build /app/target/*-runner /app/application
RUN chmod +x /app/application
diff --git a/Dockerfile.native-package b/Dockerfile.native-package
index 6f542cc7b3..10b5831734 100644
--- a/Dockerfile.native-package
+++ b/Dockerfile.native-package
@@ -4,6 +4,7 @@ ARG VERSION=latest
ARG BINARY_FILE=application
ENV FLOCI_VERSION=${VERSION}
+ENV FLOCI_STORAGE_PERSISTENT_PATH=/app/data
WORKDIR /app
diff --git a/README.md b/README.md
index b4b26fb67a..2d4d1910cc 100644
--- a/README.md
+++ b/README.md
@@ -44,6 +44,7 @@
| Cognito | ✅ | ❌ |
| ElastiCache (Redis + IAM auth) | ✅ | ❌ |
| RDS (PostgreSQL + MySQL + IAM auth) | ✅ | ❌ |
+| MSK (Kafka + Redpanda) | ✅ | ❌ |
| S3 Object Lock (COMPLIANCE / GOVERNANCE) | ✅ | ⚠️ Partial |
| DynamoDB Streams | ✅ | ⚠️ Partial |
| IAM (users, roles, policies, groups) | ✅ | ⚠️ Partial |
@@ -74,7 +75,7 @@ flowchart LR
end
subgraph Containers ["Container Services 🐳"]
- C["Lambda\nElastiCache\nRDS\nECS"]
+ C["Lambda\nElastiCache\nRDS\nECS\nMSK"]
end
Router --> Stateless
@@ -115,6 +116,7 @@ flowchart LR
| **CloudWatch Metrics** | In-process | Custom metrics, statistics, alarms |
| **ElastiCache** | **Real Docker containers** | Redis / Valkey, IAM auth, SigV4 validation |
| **RDS** | **Real Docker containers** | PostgreSQL & MySQL, IAM auth, JDBC-compatible |
+| **MSK** | **Real Docker containers** | Kafka compatible via Redpanda orchestration |
| **ECS** | **Real Docker containers** | Clusters, task definitions, tasks, services, capacity providers, task sets |
| **EC2** | In-process | VPCs, subnets, security groups, instances, AMIs, key pairs, internet gateways, route tables, Elastic IPs, tags |
| **ACM** | In-process | Certificate issuance, validation lifecycle |
@@ -125,11 +127,11 @@ flowchart LR
| **AppConfig** | In-process | Applications, environments, profiles, hosted configuration versions, deployments |
| **AppConfigData** | In-process | Configuration sessions, dynamic configuration retrieval |
-> **Lambda, ElastiCache, RDS, and ECS** spin up real Docker containers and support IAM authentication and SigV4 request signing — the same auth flow as production AWS. **ECR** runs a shared `registry:2` container so the stock `docker` client can push and pull image bytes against repositories returned by the AWS-shaped control plane.
+> **Lambda, ElastiCache, RDS, MSK, and ECS** spin up real Docker containers and support IAM authentication and SigV4 request signing — the same auth flow as production AWS. **ECR** runs a shared `registry:2` container so the stock `docker` client can push and pull image bytes against repositories returned by the AWS-shaped control plane.
>
> For per-service operation counts and endpoint protocols, see the [Services Overview](https://floci.io/floci/services/) in the documentation site.
-**29 AWS services supported.**
+**30 AWS services supported.**
## Quick Start
diff --git a/compatibility-tests/sdk-test-java/pom.xml b/compatibility-tests/sdk-test-java/pom.xml
index 394c73c77d..30bd8d9416 100644
--- a/compatibility-tests/sdk-test-java/pom.xml
+++ b/compatibility-tests/sdk-test-java/pom.xml
@@ -106,6 +106,10 @@
software.amazon.awssdk
iam
+
+ software.amazon.awssdk
+ kafka
+
software.amazon.awssdk
ec2
diff --git a/compatibility-tests/sdk-test-java/src/main/java/com/floci/test/TestFixtures.java b/compatibility-tests/sdk-test-java/src/main/java/com/floci/test/TestFixtures.java
index 8e943ea4d1..25ad115741 100644
--- a/compatibility-tests/sdk-test-java/src/main/java/com/floci/test/TestFixtures.java
+++ b/compatibility-tests/sdk-test-java/src/main/java/com/floci/test/TestFixtures.java
@@ -26,6 +26,7 @@ import software.amazon.awssdk.services.sns.SnsClient;
import software.amazon.awssdk.services.sqs.SqsClient;
import software.amazon.awssdk.services.ssm.SsmClient;
import software.amazon.awssdk.services.sts.StsClient;
+import software.amazon.awssdk.services.kafka.KafkaClient;
import software.amazon.awssdk.services.apigateway.ApiGatewayClient;
import software.amazon.awssdk.services.apigatewayv2.ApiGatewayV2Client;
import software.amazon.awssdk.services.elasticache.ElastiCacheClient;
@@ -270,6 +271,14 @@ public final class TestFixtures {
.build();
}
+ public static KafkaClient kafkaClient() {
+ return KafkaClient.builder()
+ .endpointOverride(ENDPOINT)
+ .region(REGION)
+ .credentialsProvider(CREDENTIALS)
+ .build();
+ }
+
public static KmsClient kmsClient() {
return KmsClient.builder()
.endpointOverride(ENDPOINT)
diff --git a/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/MskTest.java b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/MskTest.java
new file mode 100644
index 0000000000..e0c6fd90f9
--- /dev/null
+++ b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/MskTest.java
@@ -0,0 +1,97 @@
+package com.floci.test;
+
+import org.junit.jupiter.api.*;
+import software.amazon.awssdk.services.kafka.KafkaClient;
+import software.amazon.awssdk.services.kafka.model.*;
+
+import java.util.List;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+@DisplayName("MSK (Managed Streaming for Kafka)")
+@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
+class MskTest {
+
+ private static KafkaClient kafka;
+ private static String clusterArn;
+ private static final String CLUSTER_NAME = TestFixtures.uniqueName("msk-cluster");
+
+ @BeforeAll
+ static void setup() {
+ kafka = TestFixtures.kafkaClient();
+ }
+
+ @AfterAll
+ static void cleanup() {
+ if (kafka != null) {
+ if (clusterArn != null) {
+ try {
+ kafka.deleteCluster(DeleteClusterRequest.builder().clusterArn(clusterArn).build());
+ } catch (Exception ignored) {}
+ }
+ kafka.close();
+ }
+ }
+
+ @Test
+ @Order(1)
+ void createCluster() {
+ CreateClusterResponse response = kafka.createCluster(CreateClusterRequest.builder()
+ .clusterName(CLUSTER_NAME)
+ .kafkaVersion("3.6.1")
+ .numberOfBrokerNodes(1)
+ .brokerNodeGroupInfo(BrokerNodeGroupInfo.builder()
+ .instanceType("kafka.m5.large")
+ .clientSubnets("subnet-12345")
+ .build())
+ .build());
+
+ assertThat(response.clusterArn()).isNotNull();
+ assertThat(response.clusterName()).isEqualTo(CLUSTER_NAME);
+ assertThat(response.state()).isIn(ClusterState.CREATING, ClusterState.ACTIVE);
+ clusterArn = response.clusterArn();
+ }
+
+ @Test
+ @Order(2)
+ void describeCluster() {
+ DescribeClusterResponse response = kafka.describeCluster(DescribeClusterRequest.builder()
+ .clusterArn(clusterArn)
+ .build());
+
+ assertThat(response.clusterInfo()).isNotNull();
+ assertThat(response.clusterInfo().clusterArn()).isEqualTo(clusterArn);
+ assertThat(response.clusterInfo().clusterName()).isEqualTo(CLUSTER_NAME);
+ }
+
+ @Test
+ @Order(3)
+ void listClusters() {
+ ListClustersResponse response = kafka.listClusters(ListClustersRequest.builder().build());
+
+ assertThat(response.clusterInfoList()).anyMatch(c -> c.clusterArn().equals(clusterArn));
+ }
+
+ @Test
+ @Order(4)
+ void getBootstrapBrokers() {
+ GetBootstrapBrokersResponse response = kafka.getBootstrapBrokers(GetBootstrapBrokersRequest.builder()
+ .clusterArn(clusterArn)
+ .build());
+
+ // In mock mode it's immediate, in real mode it might be null while CREATING
+ // but our MskService handles mock=true by setting it ACTIVE immediately.
+ assertThat(response.bootstrapBrokerString()).isNotNull();
+ }
+
+ @Test
+ @Order(5)
+ void deleteCluster() {
+ DeleteClusterResponse response = kafka.deleteCluster(DeleteClusterRequest.builder()
+ .clusterArn(clusterArn)
+ .build());
+
+ assertThat(response.clusterArn()).isEqualTo(clusterArn);
+ assertThat(response.state()).isEqualTo(ClusterState.DELETING);
+ }
+}
diff --git a/docker-compose.yml b/docker-compose.yml
index 0b936a43ad..63e112e0e1 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -12,10 +12,11 @@ services:
- /var/run/docker.sock:/var/run/docker.sock
- ./scripts:/etc/floci/init/start.d
- ./scripts:/etc/floci/init/stop.d
+ - ./data:/app/data
environment:
FLOCI_SERVICES_DOCKER_NETWORK: floci_default
FLOCI_SERVICES_RDS_PROXY_BASE_PORT: "7001"
- FLOCI_STORAGE_PERSISTENT_PATH: /app/data
+ FLOCI_STORAGE_HOST_PERSISTENT_PATH: ${PWD}/data
networks:
floci_default:
aliases:
diff --git a/docs/services/msk.md b/docs/services/msk.md
new file mode 100644
index 0000000000..69ffffc501
--- /dev/null
+++ b/docs/services/msk.md
@@ -0,0 +1,62 @@
+# MSK (Managed Streaming for Kafka)
+
+**Protocol:** REST-JSON
+**Endpoint:** `http://localhost:4566/`
+
+Floci emulates Amazon MSK by orchestrating **Redpanda** containers. This provides high compatibility with the Kafka API while maintaining a low footprint.
+
+## Supported Actions
+
+| Action | Description |
+|---|---|
+| `CreateCluster` | Spawns a new Redpanda container for the cluster |
+| `CreateClusterV2` | Modern serverless/provisioned creation (mapped to provisioned) |
+| `ListClusters` | List all emulated clusters |
+| `ListClustersV2` | List all emulated clusters using V2 API |
+| `DescribeCluster` | Get cluster metadata and state |
+| `DescribeClusterV2` | Get cluster metadata and state using V2 API |
+| `DeleteCluster` | Stops and removes the Redpanda container |
+| `GetBootstrapBrokers` | Get the connection strings for the cluster |
+
+## Configuration
+
+```yaml
+floci:
+ services:
+ msk:
+ enabled: true
+ mock: false # Set to true for metadata-only CRUD (no Docker)
+ default-image: "redpandadata/redpanda:latest"
+```
+
+## How it works
+
+When `mock` is set to `false` (default), Floci uses the Docker API to start a Redpanda container for each created cluster.
+
+- **Port Mapping**: The Kafka API (9092) is mapped to a dynamic host port.
+- **Persistence**: Data is stored in the Floci persistent path under `msk/`.
+- **Readiness**: The cluster state transitions to `ACTIVE` once the Redpanda `/ready` endpoint is reachable.
+
+## Examples
+
+```bash
+export AWS_ENDPOINT_URL=http://localhost:4566
+
+# Create a cluster
+aws kafka create-cluster \
+ --cluster-name my-cluster \
+ --kafka-version "3.6.1" \
+ --numberOfBrokerNodes 1 \
+ --broker-node-group-info '{"InstanceType":"kafka.m5.large","ClientSubnets":["subnet-1"]}' \
+ --endpoint-url $AWS_ENDPOINT_URL
+
+# List clusters
+aws kafka list-clusters --endpoint-url $AWS_ENDPOINT_URL
+
+# Get bootstrap brokers
+CLUSTER_ARN=$(aws kafka list-clusters --query 'ClusterInfoList[0].ClusterArn' --output text --endpoint-url $AWS_ENDPOINT_URL)
+aws kafka get-bootstrap-brokers --cluster-arn $CLUSTER_ARN --endpoint-url $AWS_ENDPOINT_URL
+
+# Delete a cluster
+aws kafka delete-cluster --cluster-arn $CLUSTER_ARN --endpoint-url $AWS_ENDPOINT_URL
+```
diff --git a/mkdocs.yml b/mkdocs.yml
index f76d782f0a..f71ae8870d 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -85,6 +85,7 @@ nav:
- STS: services/sts.md
- ElastiCache: services/elasticache.md
- RDS: services/rds.md
+ - MSK (Kafka): services/msk.md
- EventBridge: services/eventbridge.md
- EventBridge Scheduler: services/scheduler.md
- CloudWatch: services/cloudwatch.md
diff --git a/src/main/java/io/github/hectorvent/floci/config/EmulatorConfig.java b/src/main/java/io/github/hectorvent/floci/config/EmulatorConfig.java
index 22ab2e6027..ee8e080f6a 100644
--- a/src/main/java/io/github/hectorvent/floci/config/EmulatorConfig.java
+++ b/src/main/java/io/github/hectorvent/floci/config/EmulatorConfig.java
@@ -62,6 +62,10 @@ public interface EmulatorConfig {
@WithDefault("./data")
String persistentPath();
+ /** The path on the host machine where data is stored. Useful for Docker-in-Docker. */
+ @WithDefault("${floci.storage.persistent-path}")
+ String hostPersistentPath();
+
WalConfig wal();
ServiceStorageOverrides services();
@@ -202,6 +206,7 @@ public interface EmulatorConfig {
LambdaServiceConfig lambda();
ApiGatewayServiceConfig apigateway();
IamServiceConfig iam();
+ MskServiceConfig msk();
ElastiCacheServiceConfig elasticache();
RdsServiceConfig rds();
EventBridgeServiceConfig eventbridge();
@@ -275,6 +280,17 @@ public interface EmulatorConfig {
boolean enforcementEnabled();
}
+ interface MskServiceConfig {
+ @WithDefault("true")
+ boolean enabled();
+
+ @WithDefault("false")
+ boolean mock();
+
+ @WithDefault("redpandadata/redpanda:latest")
+ String defaultImage();
+ }
+
interface ElastiCacheServiceConfig {
@WithDefault("true")
boolean enabled();
@@ -442,7 +458,7 @@ public interface EmulatorConfig {
@WithDefault("5199")
int registryMaxPort();
- @WithDefault("./data/ecr")
+ @WithDefault("${floci.storage.persistent-path}/ecr")
String dataPath();
@WithDefault("false")
diff --git a/src/main/java/io/github/hectorvent/floci/core/common/ResolvedServiceCatalog.java b/src/main/java/io/github/hectorvent/floci/core/common/ResolvedServiceCatalog.java
index 299ade2917..24f8a70b35 100644
--- a/src/main/java/io/github/hectorvent/floci/core/common/ResolvedServiceCatalog.java
+++ b/src/main/java/io/github/hectorvent/floci/core/common/ResolvedServiceCatalog.java
@@ -64,6 +64,10 @@ public class ResolvedServiceCatalog {
"iam", config.storage().mode(), 5000L, AwsNamespaces.IAM, ServiceProtocol.QUERY,
protocols(ServiceProtocol.QUERY),
Set.of(), Set.of("iam"), Set.of(), Set.of()),
+ descriptor("kafka", "msk", config.services().msk().enabled(), true,
+ "msk", config.storage().mode(), 5000L, null, ServiceProtocol.REST_JSON,
+ protocols(ServiceProtocol.REST_JSON),
+ Set.of(), Set.of("kafka"), Set.of(), Set.of(io.github.hectorvent.floci.services.msk.MskController.class)),
descriptor("sts", "iam", config.services().iam().enabled(), false,
null, null, 5000L, AwsNamespaces.STS, ServiceProtocol.QUERY,
protocols(ServiceProtocol.QUERY),
diff --git a/src/main/java/io/github/hectorvent/floci/services/ecr/registry/EcrRegistryManager.java b/src/main/java/io/github/hectorvent/floci/services/ecr/registry/EcrRegistryManager.java
index 04272608ea..5cc9f4ca80 100644
--- a/src/main/java/io/github/hectorvent/floci/services/ecr/registry/EcrRegistryManager.java
+++ b/src/main/java/io/github/hectorvent/floci/services/ecr/registry/EcrRegistryManager.java
@@ -134,10 +134,26 @@ public class EcrRegistryManager {
Ports portBindings = new Ports();
portBindings.bind(exposed, Ports.Binding.bindPort(chosenPort));
- String dataPath = Paths.get(config.services().ecr().dataPath(), "registry").toAbsolutePath().toString();
+ String hostPersistentPath = config.storage().hostPersistentPath();
+ boolean isVolume = !hostPersistentPath.startsWith("/") && !hostPersistentPath.startsWith(".");
+
HostConfig hostConfig = HostConfig.newHostConfig()
- .withPortBindings(portBindings)
- .withBinds(new Bind(dataPath, new Volume("/var/lib/registry")));
+ .withPortBindings(portBindings);
+
+ List env = new java.util.ArrayList<>(List.of(
+ "REGISTRY_STORAGE_DELETE_ENABLED=true",
+ "REGISTRY_HTTP_ADDR=0.0.0.0:" + CONTAINER_INTERNAL_PORT
+ ));
+
+ if (isVolume) {
+ String internalMountPath = "/app/data";
+ hostConfig.withBinds(new Bind(hostPersistentPath, new Volume(internalMountPath)));
+ env.add("REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY=" + internalMountPath + "/ecr/registry");
+ } else {
+ String dataPath = Paths.get(config.services().ecr().dataPath(), "registry").toAbsolutePath().toString();
+ String hostDataPath = dataPath.replace(config.storage().persistentPath(), hostPersistentPath);
+ hostConfig.withBinds(new Bind(hostDataPath, new Volume("/var/lib/registry")));
+ }
config.services().ecr().dockerNetwork()
.or(() -> config.services().dockerNetwork())
@@ -147,9 +163,7 @@ public class EcrRegistryManager {
try {
CreateContainerResponse created = dockerClient.createContainerCmd(image)
.withName(name)
- .withEnv(
- "REGISTRY_STORAGE_DELETE_ENABLED=true",
- "REGISTRY_HTTP_ADDR=0.0.0.0:" + CONTAINER_INTERNAL_PORT)
+ .withEnv(env)
.withExposedPorts(exposed)
.withHostConfig(hostConfig)
.exec();
diff --git a/src/main/java/io/github/hectorvent/floci/services/msk/MskController.java b/src/main/java/io/github/hectorvent/floci/services/msk/MskController.java
new file mode 100644
index 0000000000..af920df7b9
--- /dev/null
+++ b/src/main/java/io/github/hectorvent/floci/services/msk/MskController.java
@@ -0,0 +1,80 @@
+package io.github.hectorvent.floci.services.msk;
+
+import io.github.hectorvent.floci.services.msk.model.MskCluster;
+import jakarta.inject.Inject;
+import jakarta.ws.rs.*;
+import jakarta.ws.rs.core.MediaType;
+import jakarta.ws.rs.core.Response;
+import java.util.Map;
+
+@Path("/")
+@Produces(MediaType.APPLICATION_JSON)
+@Consumes(MediaType.APPLICATION_JSON)
+public class MskController {
+
+ private final MskService mskService;
+
+ @Inject
+ public MskController(MskService mskService) {
+ this.mskService = mskService;
+ }
+
+ @POST
+ @Path("/v1/clusters")
+ public Response createCluster(Map request) {
+ String clusterName = (String) request.get("clusterName");
+ MskCluster cluster = mskService.createCluster(clusterName);
+ return Response.ok(Map.of("clusterArn", cluster.getClusterArn(), "clusterName", cluster.getClusterName(), "state", cluster.getState())).build();
+ }
+
+ @POST
+ @Path("/api/v2/clusters")
+ public Response createClusterV2(Map request) {
+ // Simple mapping to V1 for now
+ String clusterName = (String) request.get("clusterName");
+ MskCluster cluster = mskService.createCluster(clusterName);
+ return Response.ok(Map.of("clusterArn", cluster.getClusterArn(), "clusterName", cluster.getClusterName(), "state", cluster.getState())).build();
+ }
+
+ @GET
+ @Path("/v1/clusters")
+ public Response listClusters() {
+ var clusters = mskService.listClusters();
+ return Response.ok(Map.of("clusterInfoList", clusters)).build();
+ }
+
+ @GET
+ @Path("/api/v2/clusters")
+ public Response listClustersV2() {
+ var clusters = mskService.listClusters();
+ return Response.ok(Map.of("clusterInfoList", clusters)).build();
+ }
+
+ @GET
+ @Path("/v1/clusters/{clusterArn}")
+ public Response describeCluster(@PathParam("clusterArn") String clusterArn) {
+ MskCluster cluster = mskService.describeCluster(clusterArn);
+ return Response.ok(Map.of("clusterInfo", cluster)).build();
+ }
+
+ @GET
+ @Path("/api/v2/clusters/{clusterArn}")
+ public Response describeClusterV2(@PathParam("clusterArn") String clusterArn) {
+ MskCluster cluster = mskService.describeCluster(clusterArn);
+ return Response.ok(Map.of("clusterInfo", cluster)).build();
+ }
+
+ @DELETE
+ @Path("/v1/clusters/{clusterArn}")
+ public Response deleteCluster(@PathParam("clusterArn") String clusterArn) {
+ mskService.deleteCluster(clusterArn);
+ return Response.ok(Map.of("clusterArn", clusterArn, "state", "DELETING")).build();
+ }
+
+ @GET
+ @Path("/v1/clusters/{clusterArn}/bootstrap-brokers")
+ public Response getBootstrapBrokers(@PathParam("clusterArn") String clusterArn) {
+ String bootstrapBrokers = mskService.getBootstrapBrokers(clusterArn);
+ return Response.ok(Map.of("bootstrapBrokerString", bootstrapBrokers)).build();
+ }
+}
diff --git a/src/main/java/io/github/hectorvent/floci/services/msk/MskService.java b/src/main/java/io/github/hectorvent/floci/services/msk/MskService.java
new file mode 100644
index 0000000000..9538d4005b
--- /dev/null
+++ b/src/main/java/io/github/hectorvent/floci/services/msk/MskService.java
@@ -0,0 +1,118 @@
+package io.github.hectorvent.floci.services.msk;
+
+import io.github.hectorvent.floci.config.EmulatorConfig;
+import io.github.hectorvent.floci.core.common.AwsException;
+import io.github.hectorvent.floci.core.storage.StorageBackend;
+import io.github.hectorvent.floci.core.storage.StorageFactory;
+import io.github.hectorvent.floci.services.msk.model.ClusterState;
+import io.github.hectorvent.floci.services.msk.model.MskCluster;
+import com.fasterxml.jackson.core.type.TypeReference;
+import jakarta.annotation.PostConstruct;
+import jakarta.annotation.PreDestroy;
+import jakarta.enterprise.context.ApplicationScoped;
+import jakarta.inject.Inject;
+import org.jboss.logging.Logger;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.concurrent.ConcurrentHashMap;
+import java.util.concurrent.Executors;
+import java.util.concurrent.ScheduledExecutorService;
+import java.util.concurrent.TimeUnit;
+
+@ApplicationScoped
+public class MskService {
+
+ private static final Logger LOG = Logger.getLogger(MskService.class);
+ private final StorageBackend storage;
+ private final EmulatorConfig config;
+ private final RedpandaManager redpandaManager;
+ private final ScheduledExecutorService poller = Executors.newSingleThreadScheduledExecutor();
+
+ @Inject
+ public MskService(StorageFactory storageFactory, EmulatorConfig config, RedpandaManager redpandaManager) {
+ this.storage = storageFactory.create("msk", "msk-clusters.json", new TypeReference