Google Cloud Platform: Reducing operation costs of an IoT application

What is PaperCut Views?

Why did we want to refactor?

Our approach to cost reduction

Our initial architecture

Problem 1: High contention spots

Problem 2: Cross-group transactions

Problem 3: Big nested documents

Is that all?

Wrapping it up

  • Reducing the datastore contention spots by sharding, splitting the documents and/or duplicating data.
  • Adopting eventual consistency to be able to store one kind of document per transaction.
  • Keeping a small document size.

About the author:

--

--

--

Software developer at Square. https://andrescastano.dev

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How I Git

Chapter 19 A More Complex Example

(Real-Time) Hive Crawling

Modern Portfolio Theory-Portfolio Management in Python

Visualize what changes in the next release with GitHub Actions

A Quick Simple Implementation of Python Automation

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Castaño

Castaño

Software developer at Square. https://andrescastano.dev

More from Medium

The decision process on provisioning your web application to Google Cloud

Deploy Jenkins on GCE and change home directory of Jenkins Server

Migrating Amazon Linux instances using Migrate for Compute Engine

Never experiment and use Google Cloud Platform