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).
Author Archives: Mathew
Using Spring Boot to invoke ChatGPT/OpenAI API
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.
ChatGPT, BARD – AI to write blogs & entire apps (the future is coming)
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.
Spring Framework API Gateway
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.
Github Copilot
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.
Ethereum Smart Contract on Ropsten test network
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.
Thoughts on dealing with burnout in tech
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.
GraphQL with Netflix dgs-framework
Starting the year with some back-to-basics hands-on coding using small building blocks in areas that I randomly get interested in. This time using the Netflix DGS GraphQL framework. DGS (Domain Graph Service) is a GraphQL server framework for Spring Boot.
Spring Boot and Redis PubSub
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.
Spring Boot and Redis
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.