<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: chetan venkatesh</title>
    <description>The latest articles on Forem by chetan venkatesh (@chetan_).</description>
    <link>https://forem.com/chetan_</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F182647%2F7c5e7a72-2447-4942-9122-ca1dcdb94734.png</url>
      <title>Forem: chetan venkatesh</title>
      <link>https://forem.com/chetan_</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/chetan_"/>
    <language>en</language>
    <item>
      <title>Building a low latency, globally distributed Python app using Macrometa's geo-distributed database cloud</title>
      <dc:creator>chetan venkatesh</dc:creator>
      <pubDate>Tue, 18 Jun 2019 23:26:17 +0000</pubDate>
      <link>https://forem.com/chetan_/using-python-to-create-a-globally-replicated-database-on-macrometa-5ebm</link>
      <guid>https://forem.com/chetan_/using-python-to-create-a-globally-replicated-database-on-macrometa-5ebm</guid>
      <description>&lt;p&gt;In this tutorial Im going to show you how to quickly and easily build a distributed database backend that spans across North America (Los Angeles &amp;amp; Ashburn VA), Europe (Frankfurt) and Asia (Mumbai, India).&lt;/p&gt;

&lt;p&gt;We're going to build simple python application on Macrometa's serverless geo-distributed database cloud (&lt;a href="https://www.macrometa.co"&gt;https://www.macrometa.co&lt;/a&gt;) to create a data serving backend that will span across multiple worldwide data centers. &lt;/p&gt;

&lt;p&gt;This is so that when end users run your app, it doesn't need to fetch data from a database that is thousands of miles and hundreds of milliseconds away but instead gets its data from the closest running database in a region closest to it. &lt;/p&gt;

&lt;p&gt;So if you're wondering what Macrometa is?  Macrometa is a geo-distributed database cloud service and available for free for developers to build apps on. Macrometa provides the following capabilities:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;A Serverless real time noSQL geo-distributed database that serves data as Key/Value pairs, JSON Documents, Streams, Graphs and time series.  The geo-distributed bit is important here because that what makes Macrometa special - it can very efficiently, quickly and accurately replicate and synchronize your data across 100s of worldwide locations while hiding the complexities in providing correct concurrent behavior. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;A fully integrated Stream engine to let you query and manipulate data in motion without needing to wait for it to be ingested into the database (I will do a separate tutorial on this in a few days)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;A serverless compute runtime that provides a Web Assembly in V8 engine for you to run your code with hyper-locality to your data (this will be coming out in the second half of 2019 and is not in the currently available product)&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;learn more at &lt;a href="https://www.macrometa.co"&gt;https://www.macrometa.co&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So with that background - let's dive right in. &lt;/p&gt;

&lt;p&gt;There are 2 ways to do this tutorial:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;For those who want to code - the repl.it below is for you.  You can see how to build a simple application to call Macrometa's APIs in Python to do interesting things. &lt;/li&gt;
&lt;li&gt;For those of you who prefer a web console or GUI - go to &lt;a href="https://www.macrometa.co/quickstart"&gt;https://www.macrometa.co/quickstart&lt;/a&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Building an application consists of 3 basic steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create a geo fabric or use the global fabric&lt;/li&gt;
&lt;li&gt;Create a collection for your data (a collection is like a table in SQL)&lt;/li&gt;
&lt;li&gt;Send queries to CReate, Update, Delete (CRUD) documents (rows) in your collection &lt;/li&gt;
&lt;/ol&gt;


&lt;div class="ltag__replit"&gt;
  &lt;iframe height="550px" src="https://repl.it/@ChetanVenkatesh/Programming-Macrometa-Global-geo-distributed-DB-in-Python?lite=true"&gt;&lt;/iframe&gt;
&lt;/div&gt;


</description>
      <category>replit</category>
      <category>python</category>
      <category>distributed</category>
      <category>database</category>
    </item>
  </channel>
</rss>
