Home / Companies / Aiven / Blog / June 2021

June 2021 Summaries

8 posts from Aiven

Filter
Month: Year:
Post Summaries Back to Blog
This blog post explores three Python libraries - pandas, ddlgenerator, and psycopg2 - that can be used to clean a dataset and push it to a PostgreSQL database for further analysis. The author demonstrates the process using a happiness dataset from Kaggle, which is cleaned and then stored in a PostgreSQL table. Finally, the data is queried to find out where in the world one should move to have a joyful life.
Jun 23, 2021 2,240 words in the original blog post.
PostgreSQL captures changes in data through change data capture (CDC), a set of software design patterns that determine and track the data that has changed. It uses built-in functionality for this in the form of a write-ahead log (WAL) that records all the changes made to the database. CDC can be achieved via logical decoding, which refers to the process of decoding the contents of the WAL into an application-specific form such as SQL statements. Another approach is using a streaming platform like Apache Kafka with Debezium, an open-source software that captures data changes in PostgreSQL and streams them to applications or messaging systems. These methods allow for efficient tracking and processing of changed data while minimizing the impact on the source database's performance.
Jun 22, 2021 1,934 words in the original blog post.
In the latest Terraform adventure, learn how to integrate PostgreSQL with Grafana using InfluxDB as a metric storage solution. This tutorial guides you through deploying a PostgreSQL database and setting up service integrations for InfluxDB and Grafana using Aiven's Terraform Provider. By visualizing the metrics in Grafana, gain insights into your system's behavior during load testing, performance tuning, and alert creation. Finally, learn how to clean up resources when you're done with the infrastructure.
Jun 21, 2021 1,514 words in the original blog post.
This tutorial demonstrates how to set up performance monitoring using the TIG stack (Telegraf, InfluxDB, Grafana) on a laptop. The process involves creating a time series storage and reporting platform with InfluxDB and Grafana, setting up Telegraf to collect and distribute metrics, and visualizing the metrics with Grafana. By following these steps, users can create their first monitoring pipeline and gain insights into the health status of their system.
Jun 15, 2021 1,268 words in the original blog post.
Aiven offers both PostgreSQL and MySQL as managed services. While similar, they meet different needs. Both databases support some NoSQL features and are open-source systems. The choice between them depends on various factors such as applications, conformance to SQL standards, languages and data types supported, performance/speed, user interfaces, extensions, data security and authentication, coding, and support. PostgreSQL is a good choice for developers requiring rich feature sets and administrators needing protected, fault-tolerant environments. MySQL is suitable for those needing a fast, lightweight, customizable database solution with an active community for support.
Jun 11, 2021 1,176 words in the original blog post.
The debate over whether Apache Kafka is a database revolves around its role in data architecture. While it does take in and give out data, making it similar to databases, Kafka's primary function is to record events as they occur rather than storing states of affairs like relational databases do. It excels at being a message bus component for data pipelines but isn't well-suited for occasional queries or long-term storage. Thus, while it can process enormous amounts of data and handle streaming data effectively, Kafka is best used between systems rather than as a standalone database.
Jun 10, 2021 1,354 words in the original blog post.
Terraform is a powerful tool that allows infrastructure teams to manage entire datacenters with just a few lines of configuration code, making it versionable, reproducible, and predictable. Aiven has developed its own Aiven Terraform Provider for managing open source data infrastructure. In this tutorial, we will learn how to use Terraform to configure an Aiven account, set up the Aiven Provider, and deploy a PostgreSQL database on GCP. It is important to note that Terraform can be very picky about the resources it manages, so avoid changing them manually through other tools like the Aiven Console or CLI.
Jun 03, 2021 1,527 words in the original blog post.
Apache Kafka is a highly-available, fault-tolerant platform that makes reliable communication between streaming components easy. It serves as the perfect base for any streaming application. Apache Flink adds the power of stateful data transformations to the picture, allowing users to calculate, persist, recover and process data in a similar distributed, highly-available, fault-tolerant fashion to Kafka. Together, they form an efficient combination for creating pipelines defined using SQL. This article demonstrates how to use Apache Flink and Kafka to create streaming pipelines with SQL.
Jun 02, 2021 2,923 words in the original blog post.