This guide will walk you through the process of setting up the events-gateway service.
SPRING_KAFKA_BOOTSTRAP_SERVERS
- the address of the Kafka server, it should be in the format βhost:portβConfiguration Parameter | Default value | Description |
---|---|---|
KAFKA_CONSUMER_GROUP_ID_PROCESS_ENGINE_COMMANDS_MESSAGE | engine-commands-message | Consumer group ID for processing engine commands messages |
KAFKA_CONSUMER_GROUP_ID_PROCESS_ENGINE_COMMANDS_DISCONNECT | engine-commands-disconnect | Consumer group ID for processing engine commands disconnect messages |
KAFKA_CONSUMER_GROUP_ID_PROCESS_ENGINE_COMMANDS_CONNECT | engine-commands-connect | Consumer group ID for processing engine commands connect messages |
KAFKA_CONSUMER_GROUP_ID_PROCESS_TASK_COMMANDS | task-commands-message | Consumer group ID for processing task commands |
Configuration Parameter | Default value | Description |
---|---|---|
KAFKA_CONSUMER_THREADS_PROCESS_ENGINE_COMMANDS_MESSAGE | 10 | Number of threads for processing engine commands messages |
KAFKA_CONSUMER_THREADS_PROCESS_ENGINE_COMMANDS_DISCONNECT | 5 | Number of threads for processing engine commands disconnect messages |
KAFKA_CONSUMER_THREADS_PROCESS_ENGINE_COMMANDS_CONNECT | 5 | Number of threads for processing engine commands connect messages |
KAFKA_CONSUMER_THREADS_TASK_COMMANDS | 10 | Number of threads for task commands |
KAFKA_AUTH_EXCEPTION_RETRY_INTERVAL | 10 | Interval between retries after an AuthorizationException is thrown by the Kafka consumer |
Configuration Parameter | Default value |
---|---|
KAFKA_TOPIC_EVENTS_GATEWAY_PROCESS_INSTANCE_IN_MESSAGE | ai.flowx.dev.eventsgateway.engine.commands.message.v1 |
KAFKA_TOPIC_EVENTS_GATEWAY_PROCESS_INSTANCE_IN_DISCONNECT | ai.flowx.dev.eventsgateway.engine.commands.disconnect.v1 |
KAFKA_TOPIC_EVENTS_GATEWAY_PROCESS_INSTANCE_IN_CONNECT | ai.flowx.dev.eventsgateway.engine.commands.connect.v1 |
Configuration Parameter | Default value |
---|---|
KAFKA_TOPIC_EVENTS_GATEWAY_TASK_IN_MESSAGE | ai.flowx.eventsgateway.task.commands.message.v1 |
Configuration Parameter | Description |
---|---|
SECURITY_OAUTH2_BASE_SERVER_URL | Base URL of the OAuth2 server |
SECURITY_OAUTH2_CLIENT_CLIENT_ID | Client ID for OAuth2 authentication |
SECURITY_OAUTH2_CLIENT_CLIENT_SECRET | Client secret for OAuth2 authentication |
SECURITY_OAUTH2_REALM | Realm for OAuth2 authentication |
Configuration Parameter | Description |
---|---|
SPRING_REDIS_HOST | Hostname of the Redis server |
SPRING_REDIS_PASSWORD | Password for Redis server |
SPRING_REDIS_TTL | Time-to-live for Redis keys (default value:5000000 # milliseconds) |
redis-replicas
is optional for high load use cases.spring.redis.sentinel.nodes
property is used to specify the list of Redis Sentinel nodes that the Spring application should connect to. These nodes are responsible for monitoring and managing Redis instances.
Configuration Parameter | Default | Description |
---|---|---|
EVENTS_REDIS_FREQUENCYMILLIS | 200 | Time interval (in milliseconds) between Redis queries by the events gateway to check for new messages |
EVENTS_REDIS_TTLHOURS | 4 | Sets the time-to-live for events in Redis to 4 hours |
Configuration Parameter | Description |
---|---|
LOGGING_LEVEL_ROOT | Logging level for the root Spring Boot microservice logs |
LOGGING_LEVEL_APP | Logging level for the application-level logs |