Connectivity to Azure Event Hub - spring-boot

I have few spring apis in cloud (not in azure). How can I make a call to Azure event hub service from these apis for a real time data feed?
should I try out the spring dependencies which enable this connectivity

Take a look at the official Microsoft documentation:
https://learn.microsoft.com/en-us/azure/developer/java/spring-framework/configure-spring-cloud-stream-binder-java-app-azure-event-hub
https://learn.microsoft.com/en-us/azure/event-hubs/event-hubs-java-get-started-send
And this guy's repo:
https://github.com/esalomon/spring-event-hubs1

Related

OCI and Azure - How to secure OCI hosted API by Azure APIM

I have API working on OCI. I want to consume this API into my IIS-hosted site. But before consuming this API, need to provide security to it by Azure API management.
As I am recently started working on cloud infrastructure, please guide me.

Backbase Integration with Spring Microservices

We want to create middle tier using Spring Microservices which works as communication bridge between Backbase and Finxact. Backbase hosted by another vendor so do not have full control of it. We only need to focus on our Integration layer.
What are the configuration steps we need to follow for?
Making communication between Backbase and our middle tier
Authenticating request coming from Backbase for serving proper response
do you have access to Backbase Community? The how-to implementation on how to build an integration service can be found here: https://community.backbase.com/documentation/cxs/latest/integration_services_extend

What api documentation tool can be used for Spring boot-Azure function?

Azure functions use HTTP trigger(HTTP protocol) not exactly the REST. Enough resource is available for API documentation for Spring-Rest but not for Spring-Azure
The official way to generate OpenAPI definitions with Azure Functions is to use Azure API Management (APIM) to generate it for you. There is even a consumption tier for APIM which pairs well as a custom gateway for Azure Functions.
The same should work with Spring Cloud Functions deployed on Azure too.

Using Spring Cloud Data Flow with Azure Service Bus

I am trying to find some examples of Spring Cloud Data Flow and Azure Service Bus setup. .
I have found https://github.com/microsoft/spring-cloud-azure/tree/master/spring-cloud-azure-stream-binder/spring-cloud-azure-servicebus-topic-stream-binder but it is still in RC and I do not see any examples (which cover Spring Cloud Data Flow) there.
Could you please help me to understand if I can use Spring Cloud Data Flow and Azure Service Bus together?
I was able to run examples with Kafka and RabbitMQ, but I cannot find anything about Azure Service Bus that can be used as the integration solution for Spring Cloud Data Flow
Spring Cloud Data Flow doesn't necessarily need to know what messaging layer you choose to run your applications on. Hence, your question is more likely related to how one can run the application with Azure Service Bus using Spring Cloud Stream.
This is one such a sample: https://learn.microsoft.com/en-us/java/azure/spring-framework/configure-spring-cloud-stream-binder-java-app-azure-event-hub?view=azure-java-stable
Once the application is built using Spring Cloud Stream (using the Azure event hub binder), you can then manage these applications using Spring Cloud Data Flow as Streaming applications.

Example for Spring Cloud Consul with Ribbon for client side load balancing

I see that spring-cloud-consul is live in spring.io [https://spring.io/blog/2015/05/27/spring-cloud-consul-1-0-0-m1-available-now] but I hardly see any reference examples.
I am mainly looking for Service Registration and Service Discovery with Consul and Ribbon as client side load balancer. Could someone give a sample application or an example to refer. I also checked in the git repository for spring-cloud-consul, didn't find any examples there[https://github.com/spring-cloud/spring-cloud-consul]
There is an example in the main repo, spring-cloud-consul-sample, that uses the LoadBalancerClient of which there is a ribbon implementation that will use consul to populate the server list.
I wasn't able to find much information about Consul and Ribbon, but I have found more information about Eueka (it's used by Netflix and it also does service registration/distcovery similiar to Consul). This Spring project seems to be a lot more active. Info about it can be found here: http://cloud.spring.io/spring-cloud-netflix/
This blog post demonstrates how to use spring cloud with Eueka and Ribbon: https://spring.io/blog/2015/07/14/microservices-with-spring
There is also a repo for the tutorial: https://github.com/paulc4/microservices-demo
If you still want to use Consul instead of Eueka, here is a sample project, you should be able to use this along with the blog post above to build a working example: https://github.com/spring-cloud/spring-cloud-consul/tree/master/spring-cloud-consul-sample
I wrote a demo project using Spring Cloud Consul and Spring Cloud Netflix.
I'm using Consul as a service registry, and Ribbon/Hystrix/Feign are used to simplify API service clients.
The project is hosted on GitHub: https://github.com/alexandreroman/number2words.

Resources