<?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: Jolasgela</title>
    <description>The latest articles on DEV Community by Jolasgela (@jolasgela).</description>
    <link>https://dev.to/jolasgela</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4260443%2F6e1a16bb-d129-4659-a083-50351df71a2c.png</url>
      <title>DEV Community: Jolasgela</title>
      <link>https://dev.to/jolasgela</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jolasgela"/>
    <language>en</language>
    <item>
      <title>How Txat Works: Real-Time Web and Mobile Chat Rooms with Go, InspIRCd, React, and Flutter</title>
      <dc:creator>Jolasgela</dc:creator>
      <pubDate>Mon, 23 Nov 2026 11:13:38 +0000</pubDate>
      <link>https://dev.to/jolasgela/how-txat-works-real-time-web-and-mobile-chat-rooms-with-go-inspircd-react-and-flutter-2cch</link>
      <guid>https://dev.to/jolasgela/how-txat-works-real-time-web-and-mobile-chat-rooms-with-go-inspircd-react-and-flutter-2cch</guid>
      <description>&lt;p&gt;Modern social apps are often slow, locked behind mandatory registration walls, or driven by complex algorithms. With &lt;strong&gt;Txat&lt;/strong&gt; (&lt;a href="https://txat.eu" rel="noopener noreferrer"&gt;txat.eu&lt;/a&gt;), I wanted to bring back the speed and spontaneity of classic real-time chat rooms while building on a clean, modern stack.&lt;/p&gt;

&lt;h3&gt;
  
  
  Architecture Overview
&lt;/h3&gt;

&lt;p&gt;To support instant messaging across both browsers and mobile devices without exposing raw chat protocols to the public internet, the infrastructure is structured into isolated Docker layers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Clients:&lt;/strong&gt; A web interface built with &lt;strong&gt;React + Vite&lt;/strong&gt;, paired with a cross-platform mobile app built in &lt;strong&gt;Flutter and Dart&lt;/strong&gt; (with push notifications via FCM and APNs).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Edge &amp;amp; Routing:&lt;/strong&gt; &lt;strong&gt;Cloudflare&lt;/strong&gt; handles WAF and DDoS protection at the edge, forwarding requests to &lt;strong&gt;Traefik v3&lt;/strong&gt; for TLS termination and reverse proxying.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stateless Go Services:&lt;/strong&gt; WebSocket connections (&lt;code&gt;/ws&lt;/code&gt;), REST endpoints (&lt;code&gt;/api&lt;/code&gt;), and push workers are handled by stateless &lt;strong&gt;Go&lt;/strong&gt; services.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Isolated IRC Layer:&lt;/strong&gt; Behind the Go gateways sits a two-node &lt;strong&gt;InspIRCd&lt;/strong&gt; setup connected via S2S Spanning Tree over TLS inside an internal Docker network (&lt;code&gt;irc-internal&lt;/code&gt;). Keeping the IRC daemon completely isolated from external ports prevents direct flood or bot attacks while leveraging proven channel-routing performance.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data &amp;amp; Storage:&lt;/strong&gt; &lt;strong&gt;PostgreSQL 17&lt;/strong&gt; acts as the primary database, &lt;strong&gt;Redis 7&lt;/strong&gt; (Pub/Sub and Streams) coordinates node state and message backlogs across gateway instances, and &lt;strong&gt;MinIO&lt;/strong&gt; handles object storage.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Observability:&lt;/strong&gt; Internal metrics and logs are collected via &lt;strong&gt;Prometheus&lt;/strong&gt;, &lt;strong&gt;Loki&lt;/strong&gt;, and &lt;strong&gt;Grafana + Tempo&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Safety &amp;amp; Moderation
&lt;/h3&gt;

&lt;p&gt;Running open, real-time communities requires active moderation from day one. The REST API integrates automated content scanning pipelines (Perspective API and PhotoDNA) alongside age verification workflows to keep regional and topic-based rooms clean and compliant.&lt;/p&gt;

&lt;p&gt;You can try the live web platform directly at &lt;strong&gt;&lt;a href="https://txat.eu" rel="noopener noreferrer"&gt;txat.eu&lt;/a&gt;&lt;/strong&gt; or check out the Android app on Google Play. Feedback on the architecture or onboarding flow is always welcome!&lt;/p&gt;

</description>
      <category>flutter</category>
      <category>react</category>
      <category>go</category>
      <category>architecture</category>
    </item>
  </channel>
</rss>
