May 19, 2020 By Andreas Christian 2 min read

There are many important factors when choosing a database, and different roles within the organization may have different priorities.

Among the different perspectives, the CFO might be interested in commercial considerations (e.g., license, support, hardware footprint), the CEO might be interested in stability and performance, and developers like to use databases that enable them to build faster and better.

If you are looking for new, innovative tools to develop backend database applications, read on. IBM has published a Go language driver on GitHub that facilitates rapid database application development with Db2.

Why use Go?

Many well-known applications and tools are implemented in Go language; for example, Docker, Kubernetes, and Terraform are all written in Go. Even Red Hat OpenShift, IBM’s choice of container platform, is written in Go.

The Go programming language was designed at Google in 2007. The goal was to improve programming productivity and to address some of the problems of C/C++. Some important Go features include automatic garbage collection (to avoid memory leaks) and memory safety (pointers cannot be modified).

The good news for all C/C++ programmers is that, syntactically, Go is very similar to C but uses a more simplified syntax. And, the good news for all the Python fans out there is that Go provides a build-in map type which is similar to the dictionary type in Python. There is also a Go interpreter available that facilitates rapid prototyping. A key differentiator from Python, however, is that Go uses static typing, which helps to detect errors early on in the development cycles. In addition, Go is orders of magnitude faster than Python.

So far, we talked about developer needs. The next section is more for the CEO and CFO.

Why use Db2?

When Db2 compression was invented, it significantly reduced the storage footprint while retaining performance. SAP customers, especially, migrated to Db2 to benefit from storage and memory savings. Another milestone was Db2 pureScale, which added horizontal scale-out options for OLTP workloads. Later on, Db2 BLU (a columnar database engine) was added to accelerate analytic workloads. Many customers started to sunset their in-memory analytic accelerators and adopted Db2 BLU.

What is the latest Db2 move? It is the move to the cloud! Db2 now runs containerized on OpenShift. Since OpenShift is supported by all major cloud providers, customers can easily move their Db2 databases across clouds.

Get started with Db2 and Go

In summary, Go language and Db2 are a great match. They enable developers to rapidly build database applications and help to reduce programming errors. The speed of compiled Go programs and Db2 enables customers to build fast and modern transactional and analytic applications in the cloud.

If you’d like to begin working with Go and Db2, take the free Go-Db2 programming lab in the IBM cloud. The lab environment has everything pre-installed: Go, Db2, the Db2-Go driver, and Jupyter notebooks with lab instructions that allow you to interactively try out Go code examples. You also find advanced Db2-Go code that shows for example how to work with Db2 cursors and Db2 parameter markers.

For other database labs, visit IBM Demos and select the Hybrid Data Management segment

Was this article helpful?
YesNo

More from Cloud

The history of the central processing unit (CPU)

10 min read - The central processing unit (CPU) is the computer’s brain. It handles the assignment and processing of tasks, in addition to functions that make a computer run. There’s no way to overstate the importance of the CPU to computing. Virtually all computer systems contain, at the least, some type of basic CPU. Regardless of whether they’re used in personal computers (PCs), laptops, tablets, smartphones or even in supercomputers whose output is so strong it must be measured in floating-point operations per…

A clear path to value: Overcome challenges on your FinOps journey 

3 min read - In recent years, cloud adoption services have accelerated, with companies increasingly moving from traditional on-premises hosting to public cloud solutions. However, the rise of hybrid and multi-cloud patterns has led to challenges in optimizing value and controlling cloud expenditure, resulting in a shift from capital to operational expenses.   According to a Gartner report, cloud operational expenses are expected to surpass traditional IT spending, reflecting the ongoing transformation in expenditure patterns by 2025. FinOps is an evolving cloud financial management discipline…

IBM Power8 end of service: What are my options?

3 min read - IBM Power8® generation of IBM Power Systems was introduced ten years ago and it is now time to retire that generation. The end-of-service (EoS) support for the entire IBM Power8 server line is scheduled for this year, commencing in March 2024 and concluding in October 2024. EoS dates vary by model: 31 March 2024: maintenance expires for Power Systems S812LC, S822, S822L, 822LC, 824 and 824L. 31 May 2024: maintenance expires for Power Systems S812L, S814 and 822LC. 31 October…

IBM Newsletters

Get our newsletters and topic updates that deliver the latest thought leadership and insights on emerging trends.
Subscribe now More newsletters