<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>swchrm</author_name>
  <author_url>https://blog.hatena.ne.jp/swchrm/</author_url>
  <blog_title>swchrm logs</blog_title>
  <blog_url>https://swchrm.hatenablog.com/</blog_url>
  <categories>
    <anon>覚書</anon>
    <anon>DB</anon>
    <anon>Ascnc / Await</anon>
  </categories>
  <description>背景 Firestoreへのアクセスでasyncが使われているのを見たが、そういえばなぜ必要だったか不明確だったので整理したかった。また今回のお話はJavaScriptベースのお話。 正解/不正解に関わらず現在の理解での仮説を書いてみる 非同期通信を実現する技術の一つであるAsync / Awaitを利用することで、ユーザーが同期処理のために操作を中断して通信を行わずに済み、ユーザー体験を向上させることができるため。また非同期通信を実現する別の技術であるPromiseやjQueryのDefferdなどもあるが、そちらに比べて新しい技術であるAsync / Awaitは簡潔に記述が容易なため。 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fswchrm.hatenablog.com%2Fentry%2F2019%2F03%2F28%2F175712&quot; title=&quot;なぜDBアクセスにAsync / Awaitを使う必要があるのか  - swchrm logs&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-03-28 17:57:12</published>
  <title>なぜDBアクセスにAsync / Awaitを使う必要があるのか </title>
  <type>rich</type>
  <url>https://swchrm.hatenablog.com/entry/2019/03/28/175712</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
