<?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>DEV Community: Hao-Ming Hsu</title>
    <description>The latest articles on DEV Community by Hao-Ming Hsu (@minghsu0107).</description>
    <link>https://dev.to/minghsu0107</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%2F1015825%2Fbe6294ce-7c2c-4f8f-8d2e-c461af8ab4a2.jpeg</url>
      <title>DEV Community: Hao-Ming Hsu</title>
      <link>https://dev.to/minghsu0107</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/minghsu0107"/>
    <language>en</language>
    <item>
      <title>Scalable chat application in a microservices architecture</title>
      <dc:creator>Hao-Ming Hsu</dc:creator>
      <pubDate>Thu, 02 Feb 2023 07:35:41 +0000</pubDate>
      <link>https://dev.to/minghsu0107/scalable-chat-application-in-a-microservices-architecture-3g5m</link>
      <guid>https://dev.to/minghsu0107/scalable-chat-application-in-a-microservices-architecture-3g5m</guid>
      <description>&lt;p&gt;I'd like to share my side project: &lt;a href="https://github.com/minghsu0107/go-random-chat" rel="noopener noreferrer"&gt;https://github.com/minghsu0107/go-random-chat&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is a random chat application built in a microservices architecture. An user can pair with a random person and chat in real-time.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F267zncnyszxp3ovtsb44.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F267zncnyszxp3ovtsb44.png" alt="Image description" width="800" height="553"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This project is built with scalability in mind. I used websocket for real-time messaging, Kafka for message Pub/Sub (to make chat service stateless), Redis for caching and user matching, Cassandra for message persistence, JWT &amp;amp; session for authentication, and gRPC for inter-service communication. Other common features like Google OAuth2 login, file uploads (object storage), observability (Prometheus &amp;amp; Opentelemetry), dependency injection (wire), CLI (cobra), and config management (viper) are also implemented.&lt;/p&gt;

&lt;p&gt;I hope you will find this helpful. Any PR is welcome!&lt;/p&gt;

</description>
      <category>cryptocurrency</category>
      <category>web3</category>
      <category>offers</category>
    </item>
  </channel>
</rss>
