<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by vrde on Medium]]></title>
        <description><![CDATA[Stories by vrde on Medium]]></description>
        <link>https://medium.com/@vrde?source=rss-892da16ad550------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*a1nbZ6G08Va-1howZN8bCA.jpeg</url>
            <title>Stories by vrde on Medium</title>
            <link>https://medium.com/@vrde?source=rss-892da16ad550------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 16:46:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vrde/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Introducing the WebSocket Event Stream API]]></title>
            <link>https://medium.com/the-bigchaindb-blog/introducing-the-websocket-event-stream-api-53f9206d93c8?source=rss-892da16ad550------2</link>
            <guid isPermaLink="false">https://medium.com/p/53f9206d93c8</guid>
            <category><![CDATA[websocket]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[asyncio]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[vrde]]></dc:creator>
            <pubDate>Wed, 19 Apr 2017 05:33:15 GMT</pubDate>
            <atom:updated>2017-04-20T09:34:12.487Z</atom:updated>
            <content:encoded><![CDATA[<p>With <a href="https://blog.bigchaindb.com/bigchaindb-version-0-10-released-9684fdb2a8ff">BigchainDB version 0.10</a> [<a href="https://github.com/bigchaindb/bigchaindb/releases/tag/v0.10.0">GitHub</a>] we’ve released the first implementation of the <a href="https://github.com/bigchaindb/bigchaindb/blob/v0.10.0/docs/server/source/websocket-event-stream-api.rst"><strong>WebSocket Event Stream API</strong></a>.</p><p>The <strong>Event Stream API</strong> enables new ways to interact with BigchainDB, making it possible for your application to subscribe to all <strong>newly–confirmed transactions</strong> that are happening in the system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Oh_boyPiNuAbOPOD12FWRg.jpeg" /><figcaption>Here’s to events! [image by Alberto Granzotto]</figcaption></figure><p>From now on, if you are running BigchainDB version 0.10, you can open web socket to host:9985 and listen to the transactions that has been just confirmed. As soon as a new transaction changes its status to <strong>valid</strong>, your program will receive a message from the BigchainDB web socket server with the following payload:</p><pre>{<br>    &quot;tx_id&quot;: &quot;&lt;sha3-256 hash&gt;&quot;,<br>    &quot;asset_id&quot;: &quot;&lt;sha3-256 hash&gt;&quot;,<br>    &quot;block_id&quot;: &quot;&lt;sha3-256 hash&gt;&quot;<br>}</pre><p>You can use this API to get a “green light” every time you push a new transaction to BigchainDB, meaning that your transaction has been accepted and validated. Or you can use it to track new transfers on a specific asset_id, filtering out all transactions that you don&#39;t need. Moreover, we want to highlight that <strong>this is a first step</strong> towards a more generic, richer events API, keep reading to know what are the next steps!</p><h3>Under the Hood</h3><h4>WebSocket Protocol</h4><p>To implement this API we decided to leverage the <a href="https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API">WebSocket protocol</a>, a widely used web standard that enables real–time communication between two parties. The reasons behind this decision are:</p><ul><li>WebSockets provide a rich API to events and connections;</li><li>Every programming language has one or more implementations of WebSockets;</li><li>Web browsers support WebSockets natively, so “browser only” JavaScript applications will be able to connect to BigchainDB directly.</li></ul><p><em>Aside: </em>Most of our work, and most of our decision making process, <strong>is public</strong>. If you want to know more about the history of the design of this API, take a look at its <a href="https://github.com/bigchaindb/bigchaindb/issues/862">first steps</a>.</p><h4>High Performance Python with aiohttp</h4><p>WebSocket handling is a good example where an asynchronous implementation can really stand out, compared to a threaded one. We decided to embrace <a href="https://docs.python.org/3.5/library/asyncio.html">asyncio</a>, the new (as in <a href="https://docs.python.org/3/whatsnew/3.6.html#asyncio">non provisional</a>) API for asynchronous IO, and specifically <a href="http://aiohttp.readthedocs.io/">aiohttp</a> to handle the HTTP protocol. <strong>aiohttp</strong> is a well documented, supported, and fast Python module with some amazing <a href="http://klen.github.io/py-frameworks-bench/">benchmark results</a>.</p><p>Since the supported use cases are still simple, the <a href="https://github.com/bigchaindb/bigchaindb/blob/v0.10.0/bigchaindb/web/websocket_server.py">implementation of the web socket server is quite</a> short.</p><p><em>Aside: </em>A note for all the pythonistas out there: since BigchainDB supports Python 3.4, we cannot use the new keywords async and await, so we need to stick with the old syntax @asyncio.coroutine and yield from.</p><h3>What’s Next</h3><p>The <strong>WebSocket Event Stream API</strong> is our first step to support more complex use cases. In the future, we may provide streams for other information, such as new blocks, new votes, or invalid transactions. We may also provide the ability to filter the stream for specific qualities, such as a specific output’s public_key.</p><p>To enrich even more our support for real time events, we are also starting thinking about a Web Hook API. If you want to help us design it, feel free to comment on the <a href="https://github.com/bigchaindb/bigchaindb/issues/1339">related issue</a>!</p><h3>Conclusion</h3><p>Are you happy? Are you <a href="https://www.youtube.com/watch?v=wOzPFdcsrfc">sad</a>? What would you like to see next for the WebSocket Event Stream API?</p><p>We kept this feature simple because we wanted to have it out sooner rather than later, to understand how it’s perceived by developers, and to improve it accordingly.</p><p>Be sure to follow this blog to stay up to date on future releases and to get a first-hand look at additions to the system, what has changed and why. Finally, if you’re a developer using BigchainDB, we want to hear from you. Send us an email at <a href="/service/mailto:contact@bigchaindb.com">contact@bigchaindb.com</a> and tell us your story.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=53f9206d93c8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-bigchaindb-blog/introducing-the-websocket-event-stream-api-53f9206d93c8">Introducing the WebSocket Event Stream API</a> was originally published in <a href="https://medium.com/the-bigchaindb-blog">The BigchainDB Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Epilogue]]></title>
            <link>https://medium.com/@vrde/epilogue-18698396094?source=rss-892da16ad550------2</link>
            <guid isPermaLink="false">https://medium.com/p/18698396094</guid>
            <dc:creator><![CDATA[vrde]]></dc:creator>
            <pubDate>Mon, 01 Dec 2014 18:30:35 GMT</pubDate>
            <atom:updated>2014-12-02T12:28:33.491Z</atom:updated>
            <content:encoded><![CDATA[<h2>Urlist is leaving planet Earth</h2><p><em>Dear Friends,</em></p><p>After three years of service, Urlist will be <strong>discontinued</strong> on December 31, 2014 at 1:00PM UTC. To download your data, please visit the Urlist website at <a href="http://urli.st/">http://urli.st/</a> and log in; you will find a button on the top of the page to download all your links.</p><p><strong>Three years ago</strong>, we began our journey with a specific vision in our mind: To give to our users the best and easiest tool to categorize and share the information they find in the Internet. Along the way, we improved our service to let you publish and discover new links. We did it because we’re list maniacs and Internet lovers eager for knowledge. We love the Web and believe that every Internet user is an expert on something. We wanted to give a voice to every one of you. In the past couple of years together, we collected more than 380,000 links and created over 40,000 lists, curating content from “Irish Genealogy” to “JavaScript Frameworks”, “Open Data” to “Best Cat Videos”.</p><p><strong>The story ends here</strong>. We didn’t succeed in creating a sustainable platform for links and social bookmarking, but we believe this challenge can be met some day. For now, however, we’d like to say goodbye to everyone the best way we can.</p><p>That’s why we have done the following:</p><ul><li>built a tool to export all your data that can be used starting today</li><li>planned to publish all the source code of Urlist. We truly believe in open source, and we want to share with the community the code we wrote during the last years. It will be available here <a href="https://github.com/urlist">https://github.com/urlist</a> from Jan 1, 2015.</li></ul><p>We would like to thank all of you for your support, time, and the dedication you shared with us and with the Urlist community.</p><p>We hope to meet you again one day.</p><p>Sincerely,<br>Alberto &amp; the Urlist Team</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=18698396094" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>