azure-eventhub-java
Azure Event Hubs Java SDK
Build real-time streaming applications with Azure Event Hubs SDK for Java. Use for event streaming, high-throughput data ingestion, and event-driven architectures.
Descargar el ZIP de la skill
Subir en Claude
Ve a Configuración → Capacidades → Skills → Subir skill
Activa y empieza a usar
Pruébalo
Usando "azure-eventhub-java". Create an EventHubProducerClient with DefaultAzureCredential
Resultado esperado:
EventHubProducerClient producer = new EventHubClientBuilder()
.fullyQualifiedNamespace("<namespace>.servicebus.windows.net")
.eventHubName("<event-hub-name>")
.credential(new DefaultAzureCredentialBuilder().build())
.buildProducerClient();
Usando "azure-eventhub-java". Send events in batch with partition key
Resultado esperado:
CreateBatchOptions options = new CreateBatchOptions()
.setPartitionKey("customer-123");
EventDataBatch batch = producer.createBatch(options);
batch.tryAdd(new EventData("Customer event"));
producer.send(batch);
Auditoría de seguridad
SeguroAll static findings are false positives. The skill is documentation for Azure Event Hubs Java SDK. The external_commands alerts (38 occurrences) are triggered by backticks in markdown code blocks - these are code examples, not shell commands. The weak_crypto and system_reconnaissance alerts are misinterpretations of documentation text (partition keys, checkpointing). No actual security risks present.
Puntuación de calidad
Lo que puedes crear
Build event streaming pipelines
Create event producers and consumers for real-time data streaming between systems
Implement high-throughput data ingestion
Handle millions of events per second with batch processing and partition strategies
Create scalable microservices communication
Use Event Hubs as message backbone for microservices event-driven communication
Prueba estos prompts
Show me how to create an EventHubProducerClient using a connection string in Java
How do I create an EventHubConsumerClient to receive events from a specific partition?
Implement an EventProcessorClient with BlobCheckpointStore for production-scale processing
Show me how to use EventHubProducerAsyncClient for non-blocking event sending
Mejores prácticas
- Use EventProcessorClient for production workloads to get automatic load balancing and checkpointing
- Batch events using EventDataBatch for efficient network utilization
- Always close clients using try-with-resources to ensure proper cleanup
Evitar
- Do not hardcode connection strings in source code - use environment variables or Azure Key Vault
- Avoid sending events one at a time - use batching for throughput
- Do not skip checkpointing - this leads to reprocessing events on restart
Preguntas frecuentes
What is the difference between EventHubProducerClient and EventHubProducerAsyncClient?
How do I choose a partition strategy?
What is checkpointing and why is it important?
How do I handle transient errors?
Can I use managed identity instead of connection strings?
What is the difference between earliest and latest event position?
Detalles del desarrollador
Autor
sickn33Licencia
MIT
Repositorio
https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/azure-eventhub-javaRef.
main
Estructura de archivos
📄 SKILL.md