DEV Community

Cover image for How to Use Cloud Spanner to Create and Manage NoSQL Databases
Soham
Soham

Posted on

How to Use Cloud Spanner to Create and Manage NoSQL Databases

In database management cloud spanner by google cloud platform stands for powerful and highly scalable NoSQL database solution. Cloud spanner offers the consistency of traditional databases and the scalability of NoSQL databases.

Primary Technologies Used:

Cloud Spanner: A globally distributed, consistent and horizontally scalable database service offered by google cloud platform.

NoSQL database: A type of database that provides a mechanism for storage and retrieval data that is modeled.

Strong Consistency: For the database for any read operation, the most recent write operation will be available.

Horizontal Scaling: The ability to connecting multiple hardwares and softwares that they work as single logic unit.

Steps:

Create the cloud spanner instance: To create the cloud spanner instance follow up the below

Log in to the google cloud console.
navigate to the cloud spanner section.
Click the 'create instance' and fill the instance ID and configuration.

Creating the database: Create the database from google cloud spanner.

Within cloud spanner instance go to the "Databases" section.
click on "Create database" and specify the database name and schema.

Data insertion query: Use this below SQL query to insert data into cloud spanner database.

INSERT INTO Users (UserID, Username, Email) VALUES (1, 'Abcde', 'geeksforgeeks@gmail.com');

In modern application cloud spanner offers a robust and scalable NoSQL database solution with flexibility and performance.

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay