CtrlK
BlogDocsLog inGet started
Tessl Logo

giuseppe-trisciuoglio/developer-kit

Comprehensive developer toolkit providing reusable skills for Java/Spring Boot, TypeScript/NestJS/React/Next.js, Python, PHP, AWS CloudFormation, AI/RAG, DevOps, and more.

90

Quality

90%

Does it follow best practices?

Impact

Pending

No eval scenarios have been run

SecuritybySnyk

Risky

Do not use without reviewing

This version of the tile failed moderation
Moderation pipeline encountered an internal error
Overview
Quality
Evals
Security
Files

configuration.mdplugins/developer-kit-java/skills/spring-boot-event-driven-patterns/references/

Event-Driven Architecture Configuration

Basic Configuration

application.properties

# Server Configuration
server.port=8080

# Kafka Configuration
spring.kafka.bootstrap-servers=localhost:9092
spring.kafka.producer.key-serializer=org.apache.kafka.common.serialization.StringSerializer
spring.kafka.producer.value-serializer=org.springframework.kafka.support.serializer.JsonSerializer

# Spring Cloud Stream Configuration
spring.cloud.stream.kafka.binder.brokers=localhost:9092

application.yml

server:
  port: 8080

spring:
  kafka:
    bootstrap-servers: localhost:9092
    producer:
      key-serializer: org.apache.kafka.common.serialization.StringSerializer
      value-serializer: org.springframework.kafka.support.serializer.JsonSerializer
    consumer:
      key-deserializer: org.apache.kafka.common.serialization.StringDeserializer
      value-deserializer: org.springframework.kafka.support.serializer.JsonDeserializer
      properties:
        spring.json.trusted.packages: "*"

  cloud:
    stream:
      kafka:
        binder:
          brokers: localhost:9092
      bindings:
        productCreated-in-0:
          destination: product-events
          group: order-service

Advanced Configuration

Kafka Producer Configuration

spring:
  kafka:
    producer:
      acks: all
      retries: 3
      properties:
        retry.backoff.ms: 1000
      enable.idempotence: true
      compression-type: snappy

Kafka Consumer Configuration

spring:
  kafka:
    consumer:
      auto-offset-reset: earliest
      enable-auto-commit: false
      max-poll-records: 100
    listener:
      ack-mode: manual_immediate

Error Handling Configuration

spring:
  kafka:
    producer:
      properties:
        retries: 3
        retry.backoff.ms: 1000
    consumer:
      properties:
        max.poll.interval.ms: 300000

Spring Cloud Stream Bindings

Producer Binding

spring:
  cloud:
    stream:
      bindings:
        productCreated-out-0:
          destination: product-events
          producer:
            partition-count: 3

Consumer Binding

spring:
  cloud:
    stream:
      bindings:
        productCreated-in-0:
          destination: product-events
          group: order-service
          consumer:
            max-attempts: 3
            back-off-initial-interval: 1000

Environment-Specific Configuration

Development

spring:
  kafka:
    bootstrap-servers: localhost:9092

Production

spring:
  kafka:
    bootstrap-servers: kafka1.prod.example.com:9092,kafka2.prod.example.com:9092,kafka3.prod.example.com:9092
    properties:
      security.protocol: SSL
      ssl.truststore.location: /etc/kafka/truststore.jks
      ssl.keystore.location: /etc/kafka/keystore.jks

plugins

developer-kit-java

skills

README.md

CHANGELOG.md

context7.json

CONTRIBUTING.md

README_CN.md

README_ES.md

README_IT.md

README.md

tessl.json

tile.json