So this is a mix of a couple of howtos. First, we have a simple Spring Boot app that retrieves some data from a MongoDB database that has authentication enabled to access it. Next, we will see how to store secrets in a Vault implementation and then programmatically access it (in our case the user ID and password to access the database).
OpenAI provides us the ability to invoke its features via RESTful APIs. This blog shows how to invoke the API using Spring Boot. There is nothing special here and no OpenAI Java libraries that I use. One can do the same in standard Java (non-spring) or even in more concise code with Nodejs. But here goes a sample with Spring Boot.
So it’s been some time since I wrote a blog. As I was figuring out what my next blog is, how could I ignore ChatGPT, BARD and the AI excitement that it has brought about (or re-awakened among many of us). And then there is GitHub’s Copilot and AWS CodeWhisperer! Code assistants that can make us slightly more efficient developers.
An API Gateway serves as the front-door to your APIs providing features such as route matching and forwarding, rate limiting, path rewriting, circuit breaker patterns, security policy management, throttling, API version management, among other features.
I am really excited about GitHub Copilot, a AI code pair programming capability. While good editors do provide some inbuilt code completion features, this is the first one I used that leans on AI to suggest code completions.
Let’s run through a simple “hello world” example to create and run a simple smart contract on Ethereum. It is amazing how much a simple example can teach you.
Mental Health with Kelsey Hightower on the always amazing Software Engineering Daily podcast – https://softwareengineeringdaily.com/2022/02/25/mental-health-with-kelsey-hightower/
This was a great podcast, and I want to thank Kelsey and Jeff for doing this talk. Burnout is a topic we do not talk about openly in the tech community; at least that is my experience over the years. I wish Jeff the very best as he navigates this. In this blog, I share some thoughts about one mental health condition that some of us face – burnout at work. My thoughts here are tied to the software engineering occupation, but it might resonate with other fields too.
A simple Spring Boot sample to publish a message to a Redis queue, with a message subscriber that consumes the message Spring Data. See README in Github for how to set up a local Redis and run the code.
A simple Spring Boot sample to save and retrieve an object from Redis using Spring Data. See README in Github for how to setup a local Redis and run the code.