Payara Cloud Connectivity: Linking Your Apps to Essential Backend Services

Photo of Luqman Saeed by Luqman Saeed

Payara Cloud, our increasingly popular Payara as a Service (PaaS) offering, automates the cloud deployment of your Jakarta EE and MicroProfile applications, making it easy to connect to essential services that your application relies on. This post shows you how to connect your applications to the services they need. This quick tutorial applies whether those services are inside or outside your cloud environment, as long as they are reachable across the internet.

Open Outbound Connectivity

Payara Cloud is designed with open outbound connections. This means your deployed applications can connect to any service available over the internet. This lets you easily integrate with any internet-accessible tool, including databases, APIs, message queues and any other services your application needs. For added security, you can whitelist the IP address of Payara Cloud in your firewall, so you can rest assured that only your deployed applications can connect to your services. 

Connecting to Databases

As almost all applications need some form of data store, connecting to a database from your Payara Cloud application is straightforward.

JDBC Connection Strings

Most of the time, you'll connect to a database using a standard JDBC connection string. Payara Cloud can connect whether your database is hosted on a public cloud like AWS, a private data centre, or even your local network - provided it’s reachable over the internet.

Examples:

  • MySQL: jdbc:mysql://your-database-host:3306/your-database-name
  • PostgreSQL: jdbc:postgresql://your-database-host:5432/your-database-name
  • Oracle: jdbc:oracle:thin:@your-database-host:1521:your-service-name

Combine these strings with your credentials to connect your application to the database. Payara Cloud supports encrypted connections (using SSL/TLS) to keep your data private. All deployed applications automatically get an SSL certificate. 

Beyond Databases: Integrating Other Services

Enterprise applications often rely on more than just databases, with most enterprise applications having a dependency on other services. From message brokers to blob storage and third-party APIs, Payara Cloud applications can connect to a wide array of services. 

APIs

Payara Cloud applications can easily connect to external APIs easily using libraries, like the Java HTTP Client, MicroProfile Rest Client or third-party libraries like Apache HttpClient.

Messaging Services

For messaging services, Payara Cloud applications can connect to message brokers like RabbitMQ or Kafka using their respective Java client libraries and protocols. While JMS can be used with some brokers, it's not universally supported by all messaging platforms. 

Cloud Services

Payara Cloud deployed applications can also integrate with popular cloud platforms such as:

  • Amazon S3: You can use Amazon's object storage for storing various types of data like documents, images and logs. The AWS SDK for Java makes it easy for your Payara Cloud deployed apps to interact with S3.
  • Amazon Simple Email Service (SES): You can send transactional and marketing emails directly from your Payara Cloud deployed applications. Integrate with SES using the AWS SDK for Java.
  • Google Cloud Pub/Sub: Your Payara Cloud deployed applications can publish messages to topics and subscribe to receive them in real-time using Google Cloud Pub/Sub. You can integrate it easily using the Google Cloud Client Library for Java.

These are only a few examples of the many services your Payara Cloud deployed applications can interact with and consume. The goal of Payara Cloud as a Jakarta EE application deployment service is to give your applications the freedom to use the power of the internet through outbound connections. Payara Cloud provides you a well optimized Jakarta EE and MicroProfile application deployment service, and leaves you with the freedom to choose any service your application needs. No lock-in, just freedom of choice.  

Conclusions

Payara Cloud's open connectivity lets your Jakarta EE and MicroProfile applications easily work with the services they need, no matter where they are located. Whether you're building a basic web application or a complex system of microservices, Payara Cloud makes it simple to integrate with the tools and services that run your business. Why not give it a try today with a free trial account and see for yourself?

 

Related Posts

Comments