<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Latest Insights &amp; Articles | CimpleO Blog</title>
    <link>https://cimpleo.com/blog/</link>
    <description>Software development insights from CimpleO: IoT, AI/ML, DevOps, architecture, and web development. Practical guides written by engineers.</description>
    <generator>Hugo</generator>
    <language>en-us</language><lastBuildDate>Sun, 18 Oct 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://cimpleo.com/blog/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>FCC and CE Certification Cost for IoT Hardware</title>
      <link>https://cimpleo.com/blog/fcc-ce-certification-cost-for-iot-hardware/</link>
      <pubDate>Sun, 18 Oct 2026 00:00:00 +0000</pubDate>
      <guid isPermaLink="true">https://cimpleo.com/blog/fcc-ce-certification-cost-for-iot-hardware/</guid>
      <description>FCC, CE and carrier certification add money and months on top of IoT development. Published cost ranges from Particle and Hubble, plus a budget checklist.</description>
      <content:encoded>&lt;p&gt;Founders budget for engineers, boards and cloud. Then the first radio device meets a test lab. Hubble Network calls certification &lt;a href=&#34;https://hubble.com/community/comparisons/the-real-cost-of-building-iot-hardware-a-breakdown/&#34;&gt;&amp;ldquo;the single most underestimated cost category in IoT hardware development&amp;rdquo;&lt;/a&gt;. Certification adds money and months on top of development. Plan them before you freeze the board.&lt;/p&gt;&#xA;&lt;p&gt;This post collects the published numbers, shows where they disagree, and gives you a checklist for your budget. We attribute every figure to its source. None of them is a quote from us for your product.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-the-published-numbers-say&#34;&gt;What the Published Numbers Say&lt;/h2&gt;&#xA;&lt;p&gt;Two hardware vendors publish cost ranges. They write for different audiences, so the ranges differ. We show both.&lt;/p&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th&gt;Item&lt;/th&gt;&#xA;          &lt;th&gt;Range&lt;/th&gt;&#xA;          &lt;th&gt;Source&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;FCC unintentional radiator (Subpart B)&lt;/td&gt;&#xA;          &lt;td&gt;about $3k–$5k&lt;/td&gt;&#xA;          &lt;td&gt;&lt;a href=&#34;https://particle.io/iot-guides-and-resources/iot-fcc-certifications&#34;&gt;Particle FCC guide&lt;/a&gt;&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;FCC unintentional radiator&lt;/td&gt;&#xA;          &lt;td&gt;about $1,000–$2,000, a few weeks&lt;/td&gt;&#xA;          &lt;td&gt;&lt;a href=&#34;https://docs.particle.io/hardware/certification/certification/&#34;&gt;Particle certification docs&lt;/a&gt;&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;FCC intentional radiator (Subpart C)&lt;/td&gt;&#xA;          &lt;td&gt;$40,000 or more&lt;/td&gt;&#xA;          &lt;td&gt;&lt;a href=&#34;https://particle.io/iot-guides-and-resources/iot-fcc-certifications&#34;&gt;Particle FCC guide&lt;/a&gt;&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;FCC intentional radiator&lt;/td&gt;&#xA;          &lt;td&gt;$20,000–$30,000, 4–8 weeks&lt;/td&gt;&#xA;          &lt;td&gt;&lt;a href=&#34;https://docs.particle.io/hardware/certification/certification/&#34;&gt;Particle certification docs&lt;/a&gt;&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;FCC intentional radiator testing&lt;/td&gt;&#xA;          &lt;td&gt;$5K–$30K+&lt;/td&gt;&#xA;          &lt;td&gt;&lt;a href=&#34;https://hubble.com/community/comparisons/the-real-cost-of-building-iot-hardware-a-breakdown/&#34;&gt;Hubble Network&lt;/a&gt;&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;CE marking (RED, EMC, possibly LVD)&lt;/td&gt;&#xA;          &lt;td&gt;$10K–$25K+&lt;/td&gt;&#xA;          &lt;td&gt;&lt;a href=&#34;https://hubble.com/community/comparisons/the-real-cost-of-building-iot-hardware-a-breakdown/&#34;&gt;Hubble Network&lt;/a&gt;&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Cellular carrier certification (PTCRB and carrier tests)&lt;/td&gt;&#xA;          &lt;td&gt;$15K–$50K+, 2–6 months&lt;/td&gt;&#xA;          &lt;td&gt;&lt;a href=&#34;https://hubble.com/community/comparisons/the-real-cost-of-building-iot-hardware-a-breakdown/&#34;&gt;Hubble Network&lt;/a&gt;&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;FCC, PTCRB, OTA and carrier certification together&lt;/td&gt;&#xA;          &lt;td&gt;six to nine months and up to $200k&lt;/td&gt;&#xA;          &lt;td&gt;&lt;a href=&#34;https://particle.io/iot-guides-and-resources/iot-fcc-certifications&#34;&gt;Particle FCC guide&lt;/a&gt;&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;p&gt;Particle&amp;rsquo;s own two pages disagree on the intentional radiator line: $20,000–$30,000 in the docs, $40,000 or more in the guide. Hubble&amp;rsquo;s $5K–$30K+ overlaps both. Treat the spread as the answer, and get a lab quote for your radio and markets.&lt;/p&gt;&#xA;&lt;p&gt;Hubble also gives a planning rule: &amp;ldquo;Budget 15–20% of your total project budget for certification.&amp;rdquo;&lt;/p&gt;&#xA;&lt;h2 id=&#34;intentional-and-unintentional-radiators&#34;&gt;Intentional and Unintentional Radiators&lt;/h2&gt;&#xA;&lt;p&gt;The FCC splits electronics into two groups. According to the &lt;a href=&#34;https://www.fcc.gov/general/equipment-authorization-procedures&#34;&gt;FCC&amp;rsquo;s equipment authorization procedures&lt;/a&gt;, an intentional radiator (a transmitter) must be approved through certification, which uses third-party Telecommunication Certification Bodies. Unintentional radiators (digital circuitry) can be authorized with certification or a Supplier&amp;rsquo;s Declaration of Conformity. For a product with both, the digital part can usually go either way, while the radio is typically certified.&lt;/p&gt;&#xA;&lt;p&gt;In practice:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Almost every electronic product&lt;/strong&gt; needs the unintentional radiator test. Particle says &amp;ldquo;almost all products will require unintentional radiator certification&amp;rdquo;. This is the cheap line.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;A product with a radio&lt;/strong&gt; needs the intentional radiator test. Particle&amp;rsquo;s docs say it applies &amp;ldquo;if you change antennas or add radio modules&amp;rdquo;. This is the expensive line.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Add Bluetooth to a sensor and you move from the first group to both.&lt;/p&gt;&#xA;&lt;h2 id=&#34;pre-compliance-testing&#34;&gt;Pre-Compliance Testing&lt;/h2&gt;&#xA;&lt;p&gt;Pre-compliance means a quick measurement before the formal test, often at the same lab. Hubble writes: &amp;ldquo;Pre-scan failures are common. You send your device to the test lab, and it fails radiated emissions on the first pass.&amp;rdquo;&lt;/p&gt;&#xA;&lt;p&gt;Particle cites a Digi International report: &amp;ldquo;80% of all new cellular designs fail certification the first time.&amp;rdquo;&#xA;A pre-scan tells you early whether the layout, the power supply or the enclosure leaks noise. If you catch a leak in the layout, the fix costs engineering time. If you catch it after the board run, it costs a new run.&lt;/p&gt;&#xA;&lt;h2 id=&#34;modular-approvals-what-they-save-and-what-they-dont&#34;&gt;Modular Approvals: What They Save and What They Don&amp;rsquo;t&lt;/h2&gt;&#xA;&lt;p&gt;A pre-certified radio module carries its own FCC approval. Particle describes the gain: &amp;ldquo;Particle&amp;rsquo;s modular approval from the FCC means that you can reuse the certification for Subpart C. The certification timeline can also be shortened from months to several days since you need to do only the self-declaration of compliance for Subpart B.&amp;rdquo;&lt;/p&gt;&#xA;&lt;p&gt;That saves the largest FCC line and months of waiting. It does not save everything:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;The finished product still needs its own compliance.&lt;/strong&gt; Particle&amp;rsquo;s example leaves Subpart B as a self-declaration, which is still work and still a test report.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Antenna changes can bring retests.&lt;/strong&gt; Particle&amp;rsquo;s docs say you can substitute antennas only if they meet the &amp;ldquo;equal or lesser gain&amp;rdquo; standard in each supported band, and advise using the standard antenna to avoid retesting.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;CE stays with the manufacturer.&lt;/strong&gt; The European Commission&amp;rsquo;s &lt;a href=&#34;https://single-market-economy.ec.europa.eu/single-market/ce-marking_en&#34;&gt;CE marking page&lt;/a&gt; says it is the manufacturer&amp;rsquo;s &amp;ldquo;responsibility to carry out the conformity assessment, set up the technical file, issue the EU declaration of conformity and affix the CE marking&amp;rdquo;. It adds that the marking &amp;ldquo;does not indicate that a product have been approved as safe by the EU or by another authority.&amp;rdquo;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Cellular products add carrier work.&lt;/strong&gt; See below.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;The &lt;a href=&#34;https://single-market-economy.ec.europa.eu/sectors/electrical-and-electronic-engineering-industries-eei/radio-equipment-directive-red_en&#34;&gt;Radio Equipment Directive page&lt;/a&gt; lists the essential requirements for radio equipment on the EU market: &amp;ldquo;safety and health, electromagnetic compatibility, and the efficient use of the radio spectrum&amp;rdquo;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;lab-lead-times-and-redesign-loops&#34;&gt;Lab Lead Times and Redesign Loops&lt;/h2&gt;&#xA;&lt;p&gt;Time hurts more than money. Particle puts the FCC application at &amp;ldquo;around 8 -12 weeks&amp;rdquo;, shrinking to &amp;ldquo;1 - 2 weeks&amp;rdquo; when a Telecommunication Certification Body accelerates it. Particle&amp;rsquo;s total for FCC, PTCRB, OTA and carrier work together is six to nine months.&lt;/p&gt;&#xA;&lt;p&gt;A failed test burns schedule like this:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;The lab books a slot weeks out.&lt;/li&gt;&#xA;&lt;li&gt;The device fails radiated emissions.&lt;/li&gt;&#xA;&lt;li&gt;You redesign, run a new board batch and wait for the next slot.&lt;/li&gt;&#xA;&lt;li&gt;The second test waits for the next free slot.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Each loop adds board costs, engineering hours and calendar weeks, none of which appear in the lab invoice. Hubble&amp;rsquo;s advice: &amp;ldquo;Engage a test lab during the design phase, not after.&amp;rdquo;&lt;/p&gt;&#xA;&lt;h2 id=&#34;carrier-certification-for-cellular&#34;&gt;Carrier Certification for Cellular&lt;/h2&gt;&#xA;&lt;p&gt;A cellular device on a US network faces another gate. Hubble: &amp;ldquo;If you&amp;rsquo;re connecting to AT&amp;amp;T, Verizon, or T-Mobile, you need PTCRB certification and potentially carrier-specific testing. $15K–$50K+ and 2–6 months.&amp;rdquo; Confirm the requirements for your end product with the module vendor and the carrier before you commit to a launch date.&lt;/p&gt;&#xA;&lt;h2 id=&#34;where-we-fit&#34;&gt;Where We Fit&lt;/h2&gt;&#xA;&lt;p&gt;We design boards, firmware and cloud for IoT products, and we lay out boards with certification in mind: module choice, antenna placement, power and grounding decisions that reduce first-pass failures. We help hand a finished design to a test lab and fix what the lab finds. The Micare GPS tracker went through a factory assembly stage with us, which taught us how design choices turn into production units. See the &lt;a href=&#34;https://cimpleo.com/projects/micare-gps-tracker/&#34;&gt;Micare GPS tracker case&lt;/a&gt;. We do not operate a certification lab and do not grant certificates. Labs and certification bodies do.&lt;/p&gt;&#xA;&lt;p&gt;If you plan the whole path, our &lt;a href=&#34;https://cimpleo.com/services/iot/&#34;&gt;IoT product development service&lt;/a&gt; covers the engineering side. If you need someone to own the schedule and budget across hardware, firmware and compliance, look at our &lt;a href=&#34;https://cimpleo.com/services/fractional-cto/&#34;&gt;fractional CTO service&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;budget-checklist&#34;&gt;Budget Checklist&lt;/h2&gt;&#xA;&lt;p&gt;Use it before you freeze the board.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;List every target market: US (FCC), EU (CE), others. Each adds a line.&lt;/li&gt;&#xA;&lt;li&gt;Mark every radio in the device: cellular, Wi-Fi, Bluetooth, LoRa, GPS receiver.&lt;/li&gt;&#xA;&lt;li&gt;Decide module or chip-down. A pre-certified module saves the intentional radiator line but fixes your antenna choices.&lt;/li&gt;&#xA;&lt;li&gt;Ask the module vendor which approvals cover your antenna and enclosure.&lt;/li&gt;&#xA;&lt;li&gt;Book a pre-scan at a test lab during design.&lt;/li&gt;&#xA;&lt;li&gt;Reserve money for at least one failed first pass: a board respin and a second test.&lt;/li&gt;&#xA;&lt;li&gt;Add months for lab slots and, for cellular, for PTCRB and carrier testing.&lt;/li&gt;&#xA;&lt;li&gt;Set a certification line of 15–20% of project budget (Hubble&amp;rsquo;s rule) and adjust it once a lab quotes.&lt;/li&gt;&#xA;&lt;li&gt;Keep the final test report, the technical file and the declaration of conformity.&lt;/li&gt;&#xA;&lt;li&gt;Do not set a launch date until the lab confirms a slot.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;plan-certification-before-you-freeze-the-board&#34;&gt;Plan Certification Before You Freeze the Board&lt;/h2&gt;&#xA;&lt;p&gt;Certification adds money and months to the development quote. Get a lab quote for your radio and markets early, then build the schedule around it. If you want a second opinion on your hardware plan, &lt;a href=&#34;https://cimpleo.com/contact/&#34;&gt;contact us&lt;/a&gt;.&lt;/p&gt;&#xA;</content:encoded>
    </item>
    <item>
      <title>MessagePack vs JSON on Devices: What We Switched and Why</title>
      <link>https://cimpleo.com/blog/messagepack-vs-json-on-devices/</link>
      <pubDate>Wed, 14 Oct 2026 00:00:00 +0000</pubDate>
      <guid isPermaLink="true">https://cimpleo.com/blog/messagepack-vs-json-on-devices/</guid>
      <description>Why a cellular GPS tracker moved its payload from JSON to MessagePack, what we kept in JSON on a BLE water filter, and a checklist for picking a format.</description>
      <content:encoded>&lt;p&gt;A tracker on a cellular link pays for every byte twice: once on the data plan, and once in the time the modem stays awake on a battery. In May 2024 we changed the message format on the Micare GPS tracker from JSON to MessagePack. On FlowID, a BLE-configured water filter, we kept JSON on purpose and added more of it. Both calls fit their channel.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-constraint-bytes-on-a-metered-link&#34;&gt;The constraint: bytes on a metered link&lt;/h2&gt;&#xA;&lt;p&gt;A battery tracker wakes, gets a GPS fix, powers the modem, reports and sleeps. The shorter the transmission, the sooner it sleeps, and the less data the SIM plan meters. The &lt;a href=&#34;https://cimpleo.com/projects/micare-gps-tracker/&#34;&gt;Micare GPS tracker&lt;/a&gt; ran on 2G and later LTE modems, with a USSD and SMS fallback behind the main channel.&lt;/p&gt;&#xA;&lt;p&gt;The earlier USSD channel was the cheapest path. Its payload was a delimited text string: latitude, longitude, battery, device ID and timestamp, separated by semicolons. That is compact, but it has no field names. Our server parser assumed all five fields in a fixed order. Real messages arrived with a varying number of fields and a shuffled order, so we rewrote the parser to accept any order and require only the device ID.&lt;/p&gt;&#xA;&lt;p&gt;Compactness without structure breaks when fields go missing. That lesson shaped the later choice: keep named fields, shrink the encoding.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-we-changed-and-when&#34;&gt;What we changed and when&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;October 2023: the firmware moved its transport from USSD to MQTT against our own broker.&lt;/li&gt;&#xA;&lt;li&gt;May 2024: the firmware serialization call changed from JSON to MessagePack. In the same two weeks, time fetching moved from NTP over TCP to NTP over UDP. The clock then syncs only from the GPS fix, with no NTP or cell-tower sync.&lt;/li&gt;&#xA;&lt;li&gt;Late May 2024: the API shipped to production with a decoding step that tries MessagePack first and falls back to JSON. Devices on old and new firmware could report to the same backend.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Two things went wrong in the API work. A desktop MQTT client could not reproduce device traffic: what we published reached the server in a different form than what the device sent. We tested against a real device on staging instead. We also dropped a framework payload decorator, because it ran the decoding step twice with different input.&lt;/p&gt;&#xA;&lt;p&gt;For the library, we tried two JavaScript implementations. One returned buffers, which did not fit our pipeline. We took the official &lt;code&gt;@msgpack/msgpack&lt;/code&gt;, then at a beta release on npm.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-the-documentation-says&#34;&gt;What the documentation says&lt;/h2&gt;&#xA;&lt;p&gt;The switch aimed to cut payload size. The primary sources add:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The MessagePack site says small integers fit in one byte and a short string needs one extra byte besides its text. Numeric telemetry gains most.&lt;/li&gt;&#xA;&lt;li&gt;ArduinoJson documents the same GPS reading in both formats: 62 bytes as JSON (we counted the documented string) and 49 as MessagePack, about 21 percent smaller.- The specification keeps map keys as values in the stream, so a flat object still pays for its key names. Dropping keys means moving to arrays, which costs readability.&lt;/li&gt;&#xA;&lt;li&gt;The &lt;code&gt;msgpack-javascript&lt;/code&gt; README shows its decoder running behind &lt;code&gt;JSON.parse&lt;/code&gt; in its benchmark. Server-side parse time was not our constraint, but the format is not faster everywhere.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;when-json-is-still-the-better-choice&#34;&gt;When JSON is still the better choice&lt;/h2&gt;&#xA;&lt;p&gt;FlowID shows the other side. Its device has kept a JSON sending queue since 2018 for MQTT messages during connectivity gaps. Two optimizations fit such a queue: store it in binary and serialize to JSON only at send time, which removes a double serialization, and replace the JSON library with plain &lt;code&gt;printf&lt;/code&gt; for the few messages the device builds.&lt;/p&gt;&#xA;&lt;p&gt;In 2024 we went the other way for the phone link. A new BLE characteristic carries all flow data in one JSON structure, unified across device models. The MQTT service gained new JSON topic versions, with the old ones kept for compatibility. The first reason: a unified data structure across device models. Two more apply:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;A person reads that traffic: developers, support, and the phone app team.&lt;/li&gt;&#xA;&lt;li&gt;One structure across models matters more than a few bytes on a short-range link.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;MessagePack needs no schema either, so a unified structure works in both formats. The channel decides the format.&lt;/p&gt;&#xA;&lt;h2 id=&#34;a-checklist&#34;&gt;A checklist&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Write down bytes per message, messages per day and the billing unit (byte, message or airtime). If you cannot, you do not yet have a problem MessagePack solves.&lt;/li&gt;&#xA;&lt;li&gt;Switch the metered link only. Keep JSON for BLE configuration, logs and bring-up.&lt;/li&gt;&#xA;&lt;li&gt;Keep named fields, or document the positions. Our positional USSD string broke when fields went missing.&lt;/li&gt;&#xA;&lt;li&gt;Accept both formats on the server during the rollout, and make them distinguishable. A try-decode fallback worked for us; an explicit format marker is safer.&lt;/li&gt;&#xA;&lt;li&gt;Log decoded payloads as JSON on the server so people can still read them.&lt;/li&gt;&#xA;&lt;li&gt;Test with a real device before trusting a desktop MQTT client.&lt;/li&gt;&#xA;&lt;li&gt;Pin the library version. Our decoder was a beta build.&lt;/li&gt;&#xA;&lt;li&gt;Measure airtime and cost per message before and after.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;talk-to-us&#34;&gt;Talk to us&lt;/h2&gt;&#xA;&lt;p&gt;We build IoT hardware, firmware and backends, including the cellular and BLE sides. See our &lt;a href=&#34;https://cimpleo.com/services/iot/&#34;&gt;IoT product development&lt;/a&gt; service, the &lt;a href=&#34;https://cimpleo.com/projects/micare-gps-tracker/&#34;&gt;Micare GPS tracker&lt;/a&gt; case and the &lt;a href=&#34;https://cimpleo.com/projects/flowid-portfolio/&#34;&gt;FlowID&lt;/a&gt; case. To discuss your device&amp;rsquo;s data format, &lt;a href=&#34;https://cimpleo.com/contact/&#34;&gt;contact us&lt;/a&gt;.&lt;/p&gt;&#xA;</content:encoded>
    </item>
    <item>
      <title>MQTT Security for Constrained Devices: Best Practices</title>
      <link>https://cimpleo.com/blog/mqtt-security-on-constrained-devices/</link>
      <pubDate>Sat, 10 Oct 2026 00:00:00 +0000</pubDate>
      <guid isPermaLink="true">https://cimpleo.com/blog/mqtt-security-on-constrained-devices/</guid>
      <description>MQTT security for ESP32 and GSM devices: TLS-PSK or certificates, per-device credentials and ACLs, versioned topics, BLE provisioning, plus a checklist.</description>
      <content:encoded>&lt;p&gt;MQTT has no security of its own. A broker on an open port with anonymous access takes a message from anyone and hands it to anyone. On a device with small flash, a battery and a SIM card, each protection costs resources, so you choose which layers the device carries and which move to the server.&lt;/p&gt;&#xA;&lt;p&gt;This post lists the practices we use in three product lines: the FlowID smart water filter on ESP32, the Debounz (formerly Debounz) metering system with a LoRa mesh and GSM gateways, and the Micare GPS trackers. GSM devices have their own limits on top of these; our &lt;a href=&#34;https://cimpleo.com/blog/cellular-modem-for-battery-trackers/&#34;&gt;modem comparison&lt;/a&gt; covers that side.&lt;/p&gt;&#xA;&lt;h2 id=&#34;pick-the-protection-level-your-hardware-can-carry&#34;&gt;Pick the protection level your hardware can carry&lt;/h2&gt;&#xA;&lt;p&gt;You have three building blocks:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;TLS with certificates.&lt;/strong&gt; The strongest model: the device verifies the broker, and each device can hold its own identity. It needs a certificate store, a chain, a reliable clock and a renewal plan for devices that stay in the field for years.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;TLS-PSK.&lt;/strong&gt; The link stays encrypted and the certificate chain goes away. Broker and device share a key and an identity string. The handshake is simpler and needs no clock. Plan how each device receives its key at flashing time.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Credentials and an ACL.&lt;/strong&gt; A username, a password and per-topic permissions stop strangers from using your broker. Combine them with an encrypted link.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Our rule: encrypt the link, authenticate every device, and limit each device to its own topics.&lt;/p&gt;&#xA;&lt;h2 id=&#34;encrypt-the-link-on-the-device&#34;&gt;Encrypt the link on the device&lt;/h2&gt;&#xA;&lt;p&gt;FlowID devices connect to a Mosquitto broker over TLS-PSK. The firmware sets a pre-shared key and identity on the secure client of the ESP32 networking stack and runs the standard PubSubClient library over it. The board has 4 MB of flash and runs at 80 MHz, so we keep the message buffer small at 400 bytes and leave room for the application and over-the-air updates.&lt;/p&gt;&#xA;&lt;h2 id=&#34;give-every-device-its-own-identity-and-access-list&#34;&gt;Give every device its own identity and access list&lt;/h2&gt;&#xA;&lt;p&gt;On the Micare platform every device has its own credentials on the broker and an access list built from the client identifier. A device reads and writes only its own topics, so a compromised tracker cannot touch another tracker&amp;rsquo;s data. Do not share one account across a fleet. When your key management allows it, use a different PSK per device.&lt;/p&gt;&#xA;&lt;h2 id=&#34;design-topics-for-the-long-run&#34;&gt;Design topics for the long run&lt;/h2&gt;&#xA;&lt;p&gt;Devices in the field update slowly or never, so the topic layout has to outlive the first firmware.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Use per-device topics so permissions can follow the device.&lt;/li&gt;&#xA;&lt;li&gt;Add a version prefix. Debounz devices publish telemetry to a topic of the form &lt;code&gt;v1/telemetry/serial/channel&lt;/code&gt; and receive configuration on &lt;code&gt;v1/config/serial/channel&lt;/code&gt;. New firmware can move to a new version while the server accepts both.&lt;/li&gt;&#xA;&lt;li&gt;Keep telemetry and configuration on separate branches so they can carry different permissions.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;keep-business-logic-and-browsers-off-the-broker&#34;&gt;Keep business logic and browsers off the broker&lt;/h2&gt;&#xA;&lt;p&gt;The broker is transport. In FlowID a separate device-state service subscribes to the status messages and processes them. In Debounz the web front end never connects to the broker: the backend turns device messages into events, the page reads them from the API once a minute, and no broker credentials ever reach a browser. Events now persist as a bonus.&lt;/p&gt;&#xA;&lt;h2 id=&#34;provision-over-a-controlled-channel&#34;&gt;Provision over a controlled channel&lt;/h2&gt;&#xA;&lt;p&gt;Hand network credentials to a device over BLE. The FlowID firmware receives the network details over BLE, tries to join for up to thirty seconds, saves them only after a successful join and reports the result back over BLE. A device never stores credentials it cannot use.&lt;/p&gt;&#xA;&lt;h2 id=&#34;run-the-broker-with-care&#34;&gt;Run the broker with care&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Choose a lightweight broker such as Mosquitto for small deployments.&lt;/li&gt;&#xA;&lt;li&gt;Switch persistence on so retained messages survive a restart.&lt;/li&gt;&#xA;&lt;li&gt;Watch broker memory from the first week in production.&lt;/li&gt;&#xA;&lt;li&gt;Turn off anonymous access.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;checklist&#34;&gt;Checklist&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Turn off anonymous access on every broker, with no exceptions.&lt;/li&gt;&#xA;&lt;li&gt;Encrypt the link. Use PSK when certificates are too heavy, and a different key per device if you can manage the keys.&lt;/li&gt;&#xA;&lt;li&gt;Give each device an ACL that limits it to its own topics.&lt;/li&gt;&#xA;&lt;li&gt;Keep browsers and apps away from the broker. Route them through the backend.&lt;/li&gt;&#xA;&lt;li&gt;Version your topics from the first release.&lt;/li&gt;&#xA;&lt;li&gt;Enable broker persistence if you rely on retained messages.&lt;/li&gt;&#xA;&lt;li&gt;Deliver network credentials over a controlled channel and store them only after a successful connection.&lt;/li&gt;&#xA;&lt;li&gt;Monitor broker memory.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;These practices come from our projects. Your own system still needs its own security review.&lt;/p&gt;&#xA;&lt;h2 id=&#34;plan-the-security-of-your-device-fleet&#34;&gt;Plan the security of your device fleet&lt;/h2&gt;&#xA;&lt;p&gt;If you are choosing between PSK, certificates and ACL-only for a fleet, talk to us. See our &lt;a href=&#34;https://cimpleo.com/services/iot/&#34;&gt;IoT development services&lt;/a&gt;, or read how the &lt;a href=&#34;https://cimpleo.com/projects/flowid-portfolio/&#34;&gt;FlowID filter&lt;/a&gt;, the &lt;a href=&#34;https://cimpleo.com/projects/micare-gps-tracker/&#34;&gt;Micare tracker&lt;/a&gt; and the &lt;a href=&#34;https://cimpleo.com/projects/iot-hsc/&#34;&gt;Debounz platform&lt;/a&gt; were built. &lt;a href=&#34;https://cimpleo.com/contact/&#34;&gt;Contact us&lt;/a&gt;, tell us about your hardware limits, and we will tell you which option fits.&lt;/p&gt;&#xA;</content:encoded>
    </item>
    <item>
      <title>Battery GPS Tracker Power Design: Sleep and Gating</title>
      <link>https://cimpleo.com/blog/battery-gps-tracker-power-design/</link>
      <pubDate>Tue, 06 Oct 2026 00:00:00 +0000</pubDate>
      <guid isPermaLink="true">https://cimpleo.com/blog/battery-gps-tracker-power-design/</guid>
      <description>How we cut power in battery GPS trackers: MOSFET gating, GSM sleep until the fix, RTC against watchdog, and the bench numbers from our GAT and Micare trackers.</description>
      <content:encoded>&lt;p&gt;A GPS tracker that reports once a day looks like it should run for years. Our consumption sheet shows the limit: at one report a day, half the daily energy goes to the report and half to sleeping. Cut the report cost and sleep current sets the floor. Cut sleep current and the report sets it.&lt;/p&gt;&#xA;&lt;p&gt;This post covers the power decisions in two tracker lines, GAT (a bird and animal tracker) and Micare (a vehicle tracker), and the numbers behind each. Where we calculated a value, we say so. Our &lt;a href=&#34;https://cimpleo.com/blog/cellular-modem-for-battery-trackers/&#34;&gt;modem comparison&lt;/a&gt; covers the choice of module. This post covers how you run it.&lt;/p&gt;&#xA;&lt;h2 id=&#34;where-the-energy-goes&#34;&gt;Where the energy goes&lt;/h2&gt;&#xA;&lt;p&gt;A tracker has four consumers: the microcontroller, the GPS receiver, the cellular modem and the accelerometer. The accelerometer stays powered to wake the device. The long, costly phases are the two searches: the GPS for a fix and the modem for a tower.&lt;/p&gt;&#xA;&lt;p&gt;In June 2022 we measured a GAT prototype in several firmware states. Average draw ranged from 5.5 mA to 44 mA:&lt;/p&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th&gt;Firmware state&lt;/th&gt;&#xA;          &lt;th&gt;Average draw&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;No MCU sleep, GPS never switched off, modem awake during the GPS search&lt;/td&gt;&#xA;          &lt;td&gt;44 mA&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Same, but the modem sleeps during the GPS search&lt;/td&gt;&#xA;          &lt;td&gt;37 mA&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;No MCU sleep, GPS switched off between reports&lt;/td&gt;&#xA;          &lt;td&gt;25 mA&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Wake every 30 s, sleep the modem, drop the GPRS session each time&lt;/td&gt;&#xA;          &lt;td&gt;21.6 mA&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Wake every 30 s, sleep the modem, keep the GPRS session&lt;/td&gt;&#xA;          &lt;td&gt;5.5 mA&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;p&gt;The readings include the modem&amp;rsquo;s status LED and the error of a USB tester. Use them to compare states, and do not use them to size a battery. The 44 mA state also worked only about every other attempt, with voltage sags.&lt;/p&gt;&#xA;&lt;p&gt;The last two rows show the largest single effect. Dropping the GPRS session and re-attaching on every wake cost about four times the current of staying attached. Tower search and modem initialisation are the hungriest operation.&lt;/p&gt;&#xA;&lt;p&gt;In July a second sheet turned the same bench work into per-event energy. It labels the column &amp;ldquo;mA&amp;rdquo;, but the sums only work as milliamp-hours, so we read it that way:&lt;/p&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th&gt;Event&lt;/th&gt;&#xA;          &lt;th&gt;Duration&lt;/th&gt;&#xA;          &lt;th&gt;Energy&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;GPS search plus send&lt;/td&gt;&#xA;          &lt;td&gt;40 s&lt;/td&gt;&#xA;          &lt;td&gt;0.756 mAh&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Alarm, 2 min sleep, status check&lt;/td&gt;&#xA;          &lt;td&gt;149 s&lt;/td&gt;&#xA;          &lt;td&gt;0.244 mAh&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Stop alarm plus GPS search plus send&lt;/td&gt;&#xA;          &lt;td&gt;40 s&lt;/td&gt;&#xA;          &lt;td&gt;0.488 mAh&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;One day of sleep&lt;/td&gt;&#xA;          &lt;td&gt;86 360 s&lt;/td&gt;&#xA;          &lt;td&gt;0.7197 mAh&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;p&gt;From these we calculate two things. The 40-second GPS search averages about 68 mA. The sleep line works out to about 30 µA, a figure we derived by division and did not read off a meter.&lt;/p&gt;&#xA;&lt;p&gt;One report a day costs 0.756 + 0.7197 = 1.4757 mAh. The sheet turns that into 745 days, or 24.5 months, which implies a cell of about 1100 mAh. One report a minute costs 44.5 mAh a day, about 30 times more, and the sheet gives 0.8 months. At that rate sleep current is noise. At one report a day, it matters as much as the report.&lt;/p&gt;&#xA;&lt;h2 id=&#34;power-gating-with-mosfets&#34;&gt;Power gating with MOSFETs&lt;/h2&gt;&#xA;&lt;p&gt;The ATmega328 firmware in our GAT repository defines two MOSFET pins, one for the GPS and one for the modem. Both start LOW in setup, so nothing is powered until the firmware asks. Before every sleep, the sleep routine switches both off. A separate STM32 test sketch does the same with a gate pin on the modem, behind a build flag, and waits five seconds before it cuts power.&lt;/p&gt;&#xA;&lt;p&gt;The GAT firmware uses both tools. The modem sleeps over its DTR line while the GPS searches, and the MOSFET removes power for the long sleep. A SIM7080G test on Micare favours power removal over the modem&amp;rsquo;s own sleep mode. Switching the modem off with a command gave 3.12 µA, the same as PSM, and cutting its supply made no difference. Registration took the same time in all three variants. We rejected PSM for four reasons:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;the modem may not enter the mode, and not every operator supports it;&lt;/li&gt;&#xA;&lt;li&gt;the entry takes extra time and energy;&lt;/li&gt;&#xA;&lt;li&gt;the standard&amp;rsquo;s minimum timer is 20 seconds, and the observed entry took about 30;&lt;/li&gt;&#xA;&lt;li&gt;if the code does not wait for the entry, it ends up in an uncontrolled state, because the modem may or may not sleep.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;At the 10-minute report interval in the ARMED and DISARMED modes, powering the modem off won.&lt;/p&gt;&#xA;&lt;p&gt;Gating has its own failure modes, and we hit three:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Inrush current.&lt;/strong&gt; Capacitors behind the switching transistor drew a large charging current at turn-on. Removing them was the best fix we found.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Resets.&lt;/strong&gt; On the LC86G board the microcontroller reset whenever power came through a transistor to the GPS. Replacing the transistors with an LDO that has an enable pin fixed it.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Leakage in the off state.&lt;/strong&gt; The GPS module&amp;rsquo;s backup supply pin drew 7 µA on the old L80 and 13 µA on the LC86G. The LDO should draw no more than 1.5 µA when off, and we measured about 7 µA. A software fix for the backup pin lowered consumption.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;gsm-sleep-until-the-gps-fix&#34;&gt;GSM sleep until the GPS fix&lt;/h2&gt;&#xA;&lt;p&gt;The cheapest saving on GAT came from changing the order of work. The sequence has four steps: connect the modem, send any alarms, put the modem to sleep while the GPS searches, then wake it and send everything together. The goal was fewer tower searches and fewer modem initialisations.&lt;/p&gt;&#xA;&lt;p&gt;The bench result is the 44 to 37 mA step in the table above, about 16 percent by our arithmetic.&lt;/p&gt;&#xA;&lt;p&gt;A related test compared running the GPS and the modem in parallel against in sequence. Parallel finished the same work 50 seconds sooner and drew 4 mA more.&lt;/p&gt;&#xA;&lt;h2 id=&#34;sleep-and-what-wakes-the-device&#34;&gt;Sleep, and what wakes the device&lt;/h2&gt;&#xA;&lt;p&gt;The ATmega328 firmware in our repository carries the 1.4.x versions used on Micare, and the Micare microcontroller runs at 8 MHz. Its sleep routine does five things:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;It disables the ADC and the serial ports.&lt;/li&gt;&#xA;&lt;li&gt;It turns off brown-out detection in software.&lt;/li&gt;&#xA;&lt;li&gt;It enters power-down mode.&lt;/li&gt;&#xA;&lt;li&gt;It wakes on a watchdog interrupt every four seconds and counts cycles until the configured sleep time ends. The code comment caps one sleep at 45 days.&lt;/li&gt;&#xA;&lt;li&gt;It wakes at once on a rising edge from the accelerometer or on the button.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;The accelerometer (an ADXL345) works as a motion switch. The tracker sleeps until movement, sends an alarm, then searches for a GPS fix. Testing gave us two decisions. Before every sleep the firmware reads the accelerometer&amp;rsquo;s interrupt pin, because a trigger that arrived during setup would otherwise leave the device asleep until the next one. And on Micare we split the accelerometer interrupt from the GPS interrupt and the GSM serial line from the GPS one. The firmware had named one pin for both interrupts.&lt;/p&gt;&#xA;&lt;p&gt;On Micare we added an external DS3231 RTC. The firmware sets an alarm before sleeping, for an interval the server supplies per mode. The wake sources are the accelerometer, the button and the RTC alarm. The RTC syncs from the GPS time on a successful fix. We ruled out cell-tower and NTP sync because the clock is accurate enough without them.&lt;/p&gt;&#xA;&lt;h2 id=&#34;rtc-against-watchdog&#34;&gt;RTC against watchdog&lt;/h2&gt;&#xA;&lt;p&gt;In May 2024 we compared the two sleep methods against the datasheets and on the device.&lt;/p&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th&gt;Source&lt;/th&gt;&#xA;          &lt;th&gt;Current&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;DS3231, datasheet&lt;/td&gt;&#xA;          &lt;td&gt;0.84 µA&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;DS3231, measured&lt;/td&gt;&#xA;          &lt;td&gt;0.6 to 0.8 µA&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Watchdog on, datasheet at 1.8 V&lt;/td&gt;&#xA;          &lt;td&gt;3.5 µA&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Watchdog, separate test (device switched off by its button)&lt;/td&gt;&#xA;          &lt;td&gt;about 5 µA&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;p&gt;The watchdog reading is unstable. Current falls slowly after the microcontroller goes to sleep, so any reading depends on when you take it. At 3.3 V the datasheet figure is higher than at 1.8 V. The gap is about 4.3 µA (5 minus 0.7). Over a year that is about 38 mAh, a calculation, or about 3 percent of the 1200 mAh cell we sized a GAT case for. The saving is small. The firmware wakes from the RTC alarm. An RTC also keeps wall-clock time, while the watchdog only counts intervals.&lt;/p&gt;&#xA;&lt;p&gt;The RTC also caused trouble. A GPS module returned a bad date after a failed fix, and the firmware&amp;rsquo;s only check was that the year exceeded 2022. One device stored a timestamp in 2057 and could not return to the current time without an EEPROM reset.&lt;/p&gt;&#xA;&lt;h2 id=&#34;fram-instead-of-eeprom&#34;&gt;FRAM instead of EEPROM&lt;/h2&gt;&#xA;&lt;p&gt;A tracker that cannot reach the network has to store reports and send them later. On the ATmega328 we first used the internal EEPROM. The workarounds were a check of what happens at overflow (nothing writes, since EEPROM and flash are separate), a limit of 70 records, a ring buffer split out into its own library, and a workaround for memory cell zero, which was unstable, which broke our &amp;ldquo;is the EEPROM clean&amp;rdquo; check.&lt;/p&gt;&#xA;&lt;p&gt;On the 4G board we moved to an external FRAM chip over I2C. One test showed the chip holds 544 records, each a position and a timestamp. Then we hit a collision: the FM24CL16B answers on eight I2C addresses from 0x50 to 0x57, and the ADXL345 sits at 0x53, so the memory and the accelerometer fought over the bus.&lt;/p&gt;&#xA;&lt;h2 id=&#34;bounded-retries&#34;&gt;Bounded retries&lt;/h2&gt;&#xA;&lt;p&gt;Two drain bugs were loops with no exit. One firmware version kept trying to reach a tower with no limit, never reached the sleep routine and drained the cell. We now give three attempts at the tower. For the GPS, if two fixes in a row fail on the 24th status message, the device stops searching and sends the status alone. Both rules cost nothing in hardware.&lt;/p&gt;&#xA;&lt;h2 id=&#34;battery-percentage-from-voltage&#34;&gt;Battery percentage from voltage&lt;/h2&gt;&#xA;&lt;p&gt;The battery figure in the app drives the customer&amp;rsquo;s decision to charge or replace. In March 2024 we measured a full discharge cycle of the Micare cell and prepared a formula. The server code holds two mappings. The first is a fourth-degree polynomial above 3.5 V, plus a linear ramp from 3.4 to 3.5 V for the last few percent. The second is linear, from 3.6 V (0 percent) to 4.0 V (100 percent). The server picks by firmware version: the polynomial from 1.4.46 on, the linear map below it.&lt;/p&gt;&#xA;&lt;p&gt;In April a customer complained about the display. A device whose cell had emptied months earlier showed 40 percent in the app, and below 20 percent the units could hardly send. The customer wrote that 40 percent shown meant zero. The 3.4 V floor in the polynomial is the SIM800C minimum that our sizing table used.&lt;/p&gt;&#xA;&lt;h2 id=&#34;sizing-a-cell-for-one-report-a-day&#34;&gt;Sizing a cell for one report a day&lt;/h2&gt;&#xA;&lt;p&gt;An earlier GAT table sized the battery for six and twelve months at one ping a day. It took an average of 73.84 µA and a 3.4 V cutoff, and it asked for 1600 mAh for six months and 2900 mAh for twelve. For five pings a day it used 129 µA and 2900 mAh and 5700 mAh.&lt;/p&gt;&#xA;&lt;p&gt;Check the arithmetic and you find a gap. 73.84 µA over six months is 323 mAh, and over twelve it is 647 mAh. The table asks for about five times that. That is a large margin. We include the table because the gap shows a rule: write the margin down next to the formula. The later sheet, with 1.48 mAh a day, implies a much smaller cell. The two estimates disagree.&lt;/p&gt;&#xA;&lt;h2 id=&#34;a-checklist&#34;&gt;A checklist&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Measure every state, including sleep and off, with the modem LED removed or accounted for.&lt;/li&gt;&#xA;&lt;li&gt;Write the per-event energy and the daily total in one sheet before you pick a cell.&lt;/li&gt;&#xA;&lt;li&gt;Gate the GPS and the modem, then measure the off state including the regulator&amp;rsquo;s own leakage.&lt;/li&gt;&#xA;&lt;li&gt;Keep capacitors small behind the switch, or limit the inrush.&lt;/li&gt;&#xA;&lt;li&gt;Sleep the modem during the GPS search, or power it off, and compare against PSM on your carrier.&lt;/li&gt;&#xA;&lt;li&gt;Check the accelerometer pin before you sleep.&lt;/li&gt;&#xA;&lt;li&gt;Cap every retry loop.&lt;/li&gt;&#xA;&lt;li&gt;Sync the clock from the GPS fix and reject dates you cannot trust.&lt;/li&gt;&#xA;&lt;li&gt;Map voltage to percent with a measured discharge curve, then test it under load.&lt;/li&gt;&#xA;&lt;li&gt;Write the margin beside the battery formula.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;We design and build firmware, boards and clouds for devices like these. See our &lt;a href=&#34;https://cimpleo.com/services/iot/&#34;&gt;IoT product development service&lt;/a&gt;, the &lt;a href=&#34;https://cimpleo.com/projects/iot-gat/&#34;&gt;GAT bird tracker&lt;/a&gt; and the &lt;a href=&#34;https://cimpleo.com/projects/micare-gps-tracker/&#34;&gt;Micare GPS tracker&lt;/a&gt;. To discuss your tracker, &lt;a href=&#34;https://cimpleo.com/contact/&#34;&gt;get in touch&lt;/a&gt;.&lt;/p&gt;&#xA;</content:encoded>
    </item>
    <item>
      <title>How to Choose a Cellular Modem for a Battery-Powered Tracker</title>
      <link>https://cimpleo.com/blog/cellular-modem-for-battery-trackers/</link>
      <pubDate>Fri, 02 Oct 2026 00:00:00 +0000</pubDate>
      <guid isPermaLink="true">https://cimpleo.com/blog/cellular-modem-for-battery-trackers/</guid>
      <description>Which cellular modem fits a battery GPS tracker: what we compared in SIM868, SIM808, A9G, SIM800, SIM7020C and SIM7080G, and what broke on the bench.</description>
      <content:encoded>&lt;p&gt;A battery tracker spends nearly its whole life asleep. It wakes, finds a position, sends a few bytes and goes back to sleep. The modem decides how much each of those wakeups costs, and it decides whether the SIM you ship will register at all.&lt;/p&gt;&#xA;&lt;p&gt;Across two GPS tracker families, the GAT bird and animal tracker and the Micare vehicle tracker, we tested modem and GPS combinations from 2019 to 2024. This post lists what we compared and what we decided about each module.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-problem-report-rarely-run-for-years&#34;&gt;The problem: report rarely, run for years&lt;/h2&gt;&#xA;&lt;p&gt;Both trackers share one profile. They report a position at long intervals, they send an alarm when an accelerometer reports movement, and they must not need a charger. That profile changes which spec-sheet questions matter:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Time spent searching for a tower matters more than peak current.&lt;/li&gt;&#xA;&lt;li&gt;Sleep and off-state draw matter more than throughput.&lt;/li&gt;&#xA;&lt;li&gt;Payloads are small, so a full data plan is overhead.&lt;/li&gt;&#xA;&lt;li&gt;GPS and cellular share one small board and one battery, so they interfere with each other.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;what-we-tested&#34;&gt;What we tested&lt;/h2&gt;&#xA;&lt;h3 id=&#34;2g-generation-sim868-sim808-a9g&#34;&gt;2G generation: SIM868, SIM808, A9G&lt;/h3&gt;&#xA;&lt;p&gt;We began in late 2019 with a SIM868, with one goal: get a GPS fix and send the coordinates over USSD to Emnify. The SIM808 followed. Custom logic on the SIM808 found no solution.&lt;/p&gt;&#xA;&lt;p&gt;The A9G stood out because it has its own C SDK, so firmware can run on the module itself. We spent time on the SDK, flashing over a TTL converter and bugs in GPS search. The repository README shows the cost: a Windows-centred toolchain, a newest SDK release from 2019 (older ones are unstable), and a compiler that fails to install on Ubuntu. That toolchain would cost maintenance for years.&lt;/p&gt;&#xA;&lt;h3 id=&#34;stm32--sim800--l80-r&#34;&gt;STM32 + SIM800 + L80-R&lt;/h3&gt;&#xA;&lt;p&gt;The next board used a separate microcontroller, a SIM800 modem and an L80-R GPS module with an external antenna, plus an ADXL345 accelerometer. Our first surprise came here (see below).&lt;/p&gt;&#xA;&lt;h3 id=&#34;sim7020c-and-sim7080g&#34;&gt;SIM7020C and SIM7080G&lt;/h3&gt;&#xA;&lt;p&gt;In 2023 we switched a Micare prototype from SIM800C to SIM7020C and set the goal to compare power consumption in MQTT mode. In parallel we researched LTE modules that fit the board by size and shortlisted SIM7080G, SIM7000G and A7670. SIM7080G and SIM7020C samples arrived. In January 2024 we replaced SIM800C with SIM7080G.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-decision-table&#34;&gt;The decision table&lt;/h2&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th&gt;Modem&lt;/th&gt;&#xA;          &lt;th&gt;What we checked&lt;/th&gt;&#xA;          &lt;th&gt;Verdict&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;SIM868&lt;/td&gt;&#xA;          &lt;td&gt;GPS coordinates sent over USSD to Emnify&lt;/td&gt;&#xA;          &lt;td&gt;Working bench setup&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;SIM808&lt;/td&gt;&#xA;          &lt;td&gt;GPS and custom logic; later a full prototype board&lt;/td&gt;&#xA;          &lt;td&gt;Custom logic unsolved&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;A9G&lt;/td&gt;&#xA;          &lt;td&gt;On-module SDK, flashing, GPS search bugs&lt;/td&gt;&#xA;          &lt;td&gt;Not carried forward; toolchain was heavy&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;SIM800 + L80-R&lt;/td&gt;&#xA;          &lt;td&gt;Board with external GPS module, USSD and MQTT&lt;/td&gt;&#xA;          &lt;td&gt;Base of the 2G design&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;SIM7020C&lt;/td&gt;&#xA;          &lt;td&gt;Power draw in MQTT mode against SIM800C&lt;/td&gt;&#xA;          &lt;td&gt;Prototyped&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;SIM7080G&lt;/td&gt;&#xA;          &lt;td&gt;LTE-M and NB-IoT registration, MQTT, built-in GNSS&lt;/td&gt;&#xA;          &lt;td&gt;Chosen for the 4G board&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;h2 id=&#34;what-surprised-us&#34;&gt;What surprised us&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;The voltage regulator blinded the GPS antenna.&lt;/strong&gt; The STM32 needs 3.3 V, and the other parts ran straight from the battery. A regulator solved the supply and produced noise that drowned the GPS receiver. Layout changes keep components from interfering with the antenna. Another option is an Atmega328p, which runs from the battery without a regulator.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;A newer modem refused our SIM.&lt;/strong&gt; SIM7080G registered in roaming on the 1NCE SIM our client sent. It did not register on an Emnify SIM, and a local SIM failed on three Russian carriers. The same Emnify SIM registered from a phone. The older SIM800 worked with a plain local SIM and with Emnify, and sent data over MQTT. A modem swap changes your connectivity contract along with your board.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;The GPS module drew more while off.&lt;/strong&gt; On the Micare board the L80 backup supply pin drew 7 µA. The LC86G that replaced it drew 13 µA on that pin and needed a separate regulator. The datasheet allowed that regulator no more than 1.5 µA when off. We measured about 7 µA.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Cell towers gave poor coordinates.&lt;/strong&gt; For LBS we parsed the modem&amp;rsquo;s tower report (the AT command CENG=3,1) and sent it to Google&amp;rsquo;s location service. All towers came from one operator, one or two stood close and the rest far away. The service placed the device by the first tower only. We propose the CNETSCAN=1 command instead. We shipped LBS to production in May 2024 and show it on the web dashboard only.&lt;/p&gt;&#xA;&lt;h2 id=&#34;tactics-that-cut-modem-time&#34;&gt;Tactics that cut modem time&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;GSM sleeps during the GPS wait.&lt;/strong&gt; Connect, send alarms, put the modem to sleep, wait for the GPS fix, wake the modem and send everything. Tower search and GSM initialisation are the hungriest operation.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;USSD as a data channel.&lt;/strong&gt; On GAT we sent positions through an Emnify USSD gateway and parsed them on the server.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Bounded GPS search.&lt;/strong&gt; Micare firmware makes three fix attempts. If two fixes in a row fail on a status message, the device stops searching and sends the status alone.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;RTC against watchdog.&lt;/strong&gt; We compared sleep with the watchdog against an RTC alarm, using the datasheet and measurements on the device.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;a-checklist-before-you-pick-a-modem&#34;&gt;A checklist before you pick a modem&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Take your actual SIM and carrier to the bench. Registration failed for us even though the SIM worked in a phone.&lt;/li&gt;&#xA;&lt;li&gt;Measure the off state and the sleep state of every module, GPS included, before you look at the active current.&lt;/li&gt;&#xA;&lt;li&gt;Keep the regulator and the GPS antenna apart, and test the fix time after each layout change.&lt;/li&gt;&#xA;&lt;li&gt;Decide how the device reports a position when GPS fails: a retry limit, LBS or a status-only message.&lt;/li&gt;&#xA;&lt;li&gt;Pick the smallest payload format your server can parse, and check whether a data plan is needed at all.&lt;/li&gt;&#xA;&lt;li&gt;Check whether the toolchain survives a change of team.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;We build firmware, boards and clouds for devices like these. See our &lt;a href=&#34;https://cimpleo.com/services/iot/&#34;&gt;IoT product development service&lt;/a&gt;, the &lt;a href=&#34;https://cimpleo.com/projects/iot-gat/&#34;&gt;GAT bird tracker&lt;/a&gt; and the &lt;a href=&#34;https://cimpleo.com/projects/micare-gps-tracker/&#34;&gt;Micare GPS tracker&lt;/a&gt;. To discuss your tracker, &lt;a href=&#34;https://cimpleo.com/contact/&#34;&gt;get in touch&lt;/a&gt;.&lt;/p&gt;&#xA;</content:encoded>
    </item>
    <item>
      <title>Passwords Are Obsolete: Passkeys, YubiKey and Safer Alternatives</title>
      <link>https://cimpleo.com/blog/passwordless-authentication-passkeys-yubikey/</link>
      <pubDate>Thu, 01 Oct 2026 00:00:00 +0000</pubDate>
      <guid isPermaLink="true">https://cimpleo.com/blog/passwordless-authentication-passkeys-yubikey/</guid>
      <description>Why passwords fail by design, how passkeys and YubiKey stop phishing, and where authenticator-app and email OTP fit. A practical plan for users and product teams.</description>
      <content:encoded>&lt;p&gt;The password is a 1960s invention. MIT&amp;rsquo;s CTSS system used one to separate users on a shared mainframe. Sixty years later we still ask people to invent, memorise and never reuse dozens of secrets, and we blame them when attackers steal those secrets.&lt;/p&gt;&#xA;&lt;p&gt;The blame is misplaced. The password model is broken, and no policy fixes it.&lt;/p&gt;&#xA;&lt;h2 id=&#34;why-passwords-fail-by-design&#34;&gt;Why Passwords Fail by Design&lt;/h2&gt;&#xA;&lt;p&gt;A password is a &lt;strong&gt;shared secret&lt;/strong&gt;. You know it, and the server verifies it. That structure creates four problems that no complexity rule removes.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Anyone who learns it can use it.&lt;/strong&gt; The server stores a hash, but you still send the secret itself on every login. Phishing pages, keyloggers, infostealer malware and a compromised reverse proxy all capture it in transit. Verizon&amp;rsquo;s 2025 Data Breach Investigations Report puts credential abuse first among initial access vectors, at 22% of breaches.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;You reuse them.&lt;/strong&gt; You cannot remember 150 unique 16-character strings. You reuse, so one breach at a forgotten forum becomes a breach at your bank. Credential stuffing tools automate this: they replay leaked email and password pairs against thousands of services per hour. Have I Been Pwned now indexes billions of leaked accounts, and any email address you have used for ten years is likely in it.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Complexity rules make it worse.&lt;/strong&gt; &amp;ldquo;Eight characters, one capital, one symbol&amp;rdquo; produces &lt;code&gt;Summer2026!&lt;/code&gt;. NIST SP 800-63B dropped mandatory composition rules and periodic rotation for this reason. Forced rotation trains people to append a digit.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;The server is a target.&lt;/strong&gt; Every service that stores password hashes holds a prize. Weak hashing, a misconfigured backup or an insider turns it into a leak. Your users inherit that risk from every vendor they ever signed up with.&lt;/p&gt;&#xA;&lt;p&gt;Password managers help with reuse and weak choices. They do not stop a user from pasting a perfect 24-character password into a convincing fake page. The fix has to remove the shared secret.&lt;/p&gt;&#xA;&lt;h2 id=&#34;passkeys-public-key-cryptography-instead-of-secrets&#34;&gt;Passkeys: Public-Key Cryptography Instead of Secrets&lt;/h2&gt;&#xA;&lt;p&gt;A passkey is a FIDO2 credential built on the WebAuthn standard, which the FIDO Alliance and W3C developed. The mechanism is the same asymmetric cryptography that secures SSH keys and TLS certificates.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;When you register, your device generates a key pair for that specific site.&lt;/li&gt;&#xA;&lt;li&gt;The device keeps the &lt;strong&gt;private key&lt;/strong&gt;. The site receives the &lt;strong&gt;public key&lt;/strong&gt;.&lt;/li&gt;&#xA;&lt;li&gt;When you log in, the site sends a random challenge. Your device signs it after you confirm with a fingerprint, face scan or PIN.&lt;/li&gt;&#xA;&lt;li&gt;The site verifies the signature with the public key.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;img src=&#34;https://cimpleo.com/uploads/passkey-flow-en.svg&#34; alt=&#34;Passkey login: the device keeps the private key and signs a challenge from the website&#34; class=&#34;img-fluid lazyload&#34;&gt;&#xA;&lt;p&gt;Three properties follow from this design.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Nothing reusable crosses the network.&lt;/strong&gt; A signed challenge is valid once, for one site. A database leak exposes public keys, which are useless to an attacker.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Phishing stops working.&lt;/strong&gt; The browser binds the credential to the real domain. On &lt;code&gt;examp1e.com&lt;/code&gt; the passkey for &lt;code&gt;example.com&lt;/code&gt; does not appear, and the user has nothing to hand over. This is the property that separates passkeys from every code-based method.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Biometrics stay local.&lt;/strong&gt; Your fingerprint never leaves the device. It unlocks the private key and nothing else.&lt;/p&gt;&#xA;&lt;img src=&#34;https://cimpleo.com/uploads/phishing-en.svg&#34; alt=&#34;Phishing against a password and against a passkey: the passkey is never offered to a fake domain&#34; class=&#34;img-fluid lazyload&#34;&gt;&#xA;&lt;h3 id=&#34;synced-and-device-bound-passkeys&#34;&gt;Synced and device-bound passkeys&lt;/h3&gt;&#xA;&lt;p&gt;Passkeys come in two forms:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Synced passkeys&lt;/strong&gt; live in iCloud Keychain, Google Password Manager, Microsoft&amp;rsquo;s stack or a password manager such as 1Password or Bitwarden. They follow you across devices and survive a lost phone.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Device-bound passkeys&lt;/strong&gt; live on one piece of hardware, such as a security key, and never leave it.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Synced passkeys remove the main usability objection: a lost phone no longer means a lost account. The trade-off is that the sync provider&amp;rsquo;s account becomes part of your security perimeter. Secure that account with a hardware key, and the chain holds.&lt;/p&gt;&#xA;&lt;p&gt;Support is broad. Apple, Google and Microsoft ship passkeys in their operating systems and browsers. GitHub, PayPal, Amazon, Shopify and most large identity providers accept them. Microsoft has made new accounts passwordless by default.&lt;/p&gt;&#xA;&lt;h2 id=&#34;yubikey-the-passkey-you-can-hold&#34;&gt;YubiKey: The Passkey You Can Hold&lt;/h2&gt;&#xA;&lt;p&gt;A YubiKey is a hardware security key from Yubico. It stores credentials in a tamper-resistant chip and signs challenges after you touch it. The private key cannot be exported, copied or synced, even by you.&lt;/p&gt;&#xA;&lt;picture&gt;&lt;source type=&#34;image/webp&#34; data-srcset=&#34;https://cimpleo.com/uploads/passwordless-authentication-keys_hu_27e33339322361a2.webp 450w, https://cimpleo.com/uploads/passwordless-authentication-keys_hu_8ffe467058a0915.webp 1070w, https://cimpleo.com/uploads/passwordless-authentication-keys_hu_344a8b2e4395733b.webp 2140w&#34; sizes=&#34;(max-width: 480px) 450px, 1070px&#34;&gt;&#xA;&lt;source type=&#34;image/webp&#34; data-srcset=&#34;https://cimpleo.com/uploads/passwordless-authentication-keys_hu_93def272a34e759e.webp 450w, https://cimpleo.com/uploads/passwordless-authentication-keys_hu_fda7f0735240a84a.webp 1070w, https://cimpleo.com/uploads/passwordless-authentication-keys.webp 2140w&#34; sizes=&#34;(max-width: 480px) 450px, 1070px&#34;&gt;&#xA;&lt;img class=&#34;img-fluid lazyload&#34; alt=&#34;A hardware security key plugged into a laptop, a phone with a fingerprint prompt and a spare key on a tray&#34; width=&#34;2140&#34; height=&#34;1194&#34; data-src=&#34;https://cimpleo.com/uploads/passwordless-authentication-keys.webp&#34;&gt;&#xA;&lt;/picture&gt;&#xA;&lt;p&gt;That makes it the strongest option for accounts where the cost of a takeover is high. The evidence is concrete. Google reported in 2018 that after it required physical security keys for its 85,000+ employees, it had no confirmed account takeovers since the rollout in early 2017. A 2019 Google study of account hijacking compared methods against three attack types:&lt;/p&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th&gt;Method&lt;/th&gt;&#xA;          &lt;th&gt;Automated bots&lt;/th&gt;&#xA;          &lt;th&gt;Bulk phishing&lt;/th&gt;&#xA;          &lt;th&gt;Targeted attacks&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;SMS code&lt;/td&gt;&#xA;          &lt;td&gt;100% blocked&lt;/td&gt;&#xA;          &lt;td&gt;96% blocked&lt;/td&gt;&#xA;          &lt;td&gt;76% blocked&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;On-device prompt&lt;/td&gt;&#xA;          &lt;td&gt;100%&lt;/td&gt;&#xA;          &lt;td&gt;99%&lt;/td&gt;&#xA;          &lt;td&gt;90%&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Security key&lt;/td&gt;&#xA;          &lt;td&gt;100%&lt;/td&gt;&#xA;          &lt;td&gt;100%&lt;/td&gt;&#xA;          &lt;td&gt;100%&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;p&gt;One key also does more than FIDO2. The YubiKey 5 series supports FIDO2/WebAuthn, FIDO U2F, PIV smart-card login, OpenPGP and OATH one-time codes. You can use it to sign in to Google or GitHub, sign Git commits, authenticate SSH sessions and store TOTP secrets, all with one device.&lt;/p&gt;&#xA;&lt;h3 id=&#34;practical-advice-for-owning-one&#34;&gt;Practical advice for owning one&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Buy at least two.&lt;/strong&gt; Register both on every important account. Keep the second in a safe, a bank box or an office drawer.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Pick the form factor for your hardware.&lt;/strong&gt; USB-C for current laptops and phones, USB-A for older machines, NFC for tapping a phone. The YubiKey Bio adds a fingerprint reader in place of touch-only confirmation.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Set a PIN on the FIDO2 application.&lt;/strong&gt; A stolen key then needs more than possession.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Prioritise accounts.&lt;/strong&gt; Start with primary email, the password manager, your cloud console, your domain registrar, your code host and your bank. Email comes first because every password reset flows through it.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Generate backup codes&lt;/strong&gt; where the service offers them, and store them offline.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Prices start at $29 for a basic FIDO security key, run about $58 for a YubiKey 5 NFC and reach $98 for the YubiKey Bio. One compromised admin account costs more than the whole drawer.&lt;/p&gt;&#xA;&lt;h2 id=&#34;alternatives-authenticator-app-otp-and-email-otp&#34;&gt;Alternatives: Authenticator-App OTP and Email OTP&lt;/h2&gt;&#xA;&lt;p&gt;You cannot move every service to passkeys today. If a service offers nothing better, use these, in order of preference.&lt;/p&gt;&#xA;&lt;h3 id=&#34;totp-through-an-authenticator-app&#34;&gt;TOTP through an authenticator app&lt;/h3&gt;&#xA;&lt;p&gt;Time-based one-time passwords (RFC 6238) are the six-digit codes in Google Authenticator, Microsoft Authenticator, Aegis, 2FAS or 1Password. The app and the server share a secret at setup, and both compute a code from that secret plus the current 30-second window.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Strengths:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Works offline and on any service that supports it.&lt;/li&gt;&#xA;&lt;li&gt;Not exposed to SIM swapping.&lt;/li&gt;&#xA;&lt;li&gt;Costs nothing and takes two minutes to set up.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;strong&gt;Weaknesses:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The code is still typed by a human, so a fake login page can collect it and relay it to the real site within the 30-second window. Tools such as Evilginx automate this.&lt;/li&gt;&#xA;&lt;li&gt;The secret sits on your phone. Losing the phone without a backup locks you out.&lt;/li&gt;&#xA;&lt;li&gt;Google Authenticator can sync secrets to a Google account. That is convenient, and it also moves your second factor into a cloud account. Decide on purpose.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Use an app that supports encrypted backups or export (Aegis, 2FAS, 1Password), and store the recovery codes offline.&lt;/p&gt;&#xA;&lt;h3 id=&#34;email-otp-and-magic-links&#34;&gt;Email OTP and magic links&lt;/h3&gt;&#xA;&lt;p&gt;The server emails a code or a one-time link. For consumer products it removes the password from the sign-up flow, and users already understand it.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Strengths:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;No app, no hardware and no memorised secret.&lt;/li&gt;&#xA;&lt;li&gt;Low friction for infrequent logins.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;strong&gt;Weaknesses:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;It is phishable in the same way TOTP is.&lt;/li&gt;&#xA;&lt;li&gt;It is only as secure as the mailbox. If the mailbox sits behind a weak password, email OTP is a weak password with extra steps.&lt;/li&gt;&#xA;&lt;li&gt;Delivery delays and spam filters break login at the worst moments.&lt;/li&gt;&#xA;&lt;li&gt;Email is transmitted through several servers, without end-to-end encryption.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Treat email OTP as a fallback and a recovery channel for low-risk accounts, with the mailbox secured by a passkey or security key.&lt;/p&gt;&#xA;&lt;h3 id=&#34;what-to-avoid-sms-codes&#34;&gt;What to avoid: SMS codes&lt;/h3&gt;&#xA;&lt;p&gt;SMS is better than a bare password and worse than everything above. SIM swapping, SS7 weaknesses and number recycling all give attackers a path. NIST classifies SMS as a &amp;ldquo;restricted&amp;rdquo; authenticator in SP 800-63B. Keep it only when a service gives you nothing else, and move off it as soon as that changes.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-ladder-at-a-glance&#34;&gt;The Ladder at a Glance&lt;/h2&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th&gt;Method&lt;/th&gt;&#xA;          &lt;th&gt;Phishing-resistant&lt;/th&gt;&#xA;          &lt;th&gt;Stops credential reuse&lt;/th&gt;&#xA;          &lt;th&gt;Recovery effort&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Password only&lt;/td&gt;&#xA;          &lt;td&gt;No&lt;/td&gt;&#xA;          &lt;td&gt;No&lt;/td&gt;&#xA;          &lt;td&gt;Low&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Password + SMS&lt;/td&gt;&#xA;          &lt;td&gt;No&lt;/td&gt;&#xA;          &lt;td&gt;Partly&lt;/td&gt;&#xA;          &lt;td&gt;Low&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Email OTP&lt;/td&gt;&#xA;          &lt;td&gt;No&lt;/td&gt;&#xA;          &lt;td&gt;Yes&lt;/td&gt;&#xA;          &lt;td&gt;Low&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Password + TOTP&lt;/td&gt;&#xA;          &lt;td&gt;No&lt;/td&gt;&#xA;          &lt;td&gt;Partly&lt;/td&gt;&#xA;          &lt;td&gt;Medium&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Synced passkey&lt;/td&gt;&#xA;          &lt;td&gt;Yes&lt;/td&gt;&#xA;          &lt;td&gt;Yes&lt;/td&gt;&#xA;          &lt;td&gt;Low&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Hardware key (YubiKey)&lt;/td&gt;&#xA;          &lt;td&gt;Yes&lt;/td&gt;&#xA;          &lt;td&gt;Yes&lt;/td&gt;&#xA;          &lt;td&gt;Medium&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;p&gt;Only the last two rows stop phishing. The rest raise the bar for lazy attackers and fail against a motivated one.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-to-do-if-you-build-products&#34;&gt;What to Do If You Build Products&lt;/h2&gt;&#xA;&lt;p&gt;Roll authentication out in this order.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;strong&gt;Offer passkeys as the primary sign-in.&lt;/strong&gt; Use a maintained library (SimpleWebAuthn for Node.js, py_webauthn for Python, webauthn-rs for Rust) or an identity provider that supports passkeys (Auth0, Keycloak, AWS Cognito, Clerk). Do not write WebAuthn verification yourself.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Prompt for passkey enrolment after a successful login.&lt;/strong&gt; Ask right after login, when the user has just proved who they are. A settings page nobody opens enrols nobody.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Support hardware keys alongside platform passkeys.&lt;/strong&gt; Require them for admin roles, staff accounts and anyone with access to production data.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Keep TOTP as the fallback&lt;/strong&gt;, and email OTP for low-risk flows. Drop SMS for new users.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Remove the password when a user enrols a passkey.&lt;/strong&gt; If the old password stays active, an attacker uses it and your new security does nothing. Let the user delete the password from their account.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Design recovery first.&lt;/strong&gt; Account recovery is where attackers go once login is hard. Require multiple enrolled authenticators or backup codes, add a cooling-off delay on recovery and notify the user on every change. A recovery flow that skips the strong factor undoes the work.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Use step-up authentication&lt;/strong&gt; for sensitive actions such as changing the payout account or exporting data. Ask for a fresh passkey touch even inside a live session.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Rate-limit and log&lt;/strong&gt; every authentication endpoint, including OTP verification.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;The same principles apply to internal systems. Put single sign-on in front of your tools, require phishing-resistant factors at the identity provider and let applications inherit them. That gives one place to enforce policy and one place to revoke access when a person leaves.&lt;/p&gt;&#xA;&lt;h2 id=&#34;a-plan-you-can-finish-this-month&#34;&gt;A Plan You Can Finish This Month&lt;/h2&gt;&#xA;&lt;p&gt;For yourself:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Buy two security keys.&lt;/li&gt;&#xA;&lt;li&gt;Register them on email, your password manager, cloud, code hosting and bank.&lt;/li&gt;&#xA;&lt;li&gt;Turn on passkeys in your main Apple, Google or Microsoft account and in a password manager.&lt;/li&gt;&#xA;&lt;li&gt;Replace SMS codes with TOTP or passkeys everywhere that allows it.&lt;/li&gt;&#xA;&lt;li&gt;Print backup codes and put them in a safe.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;For a team:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Inventory every system that signs people in, and list which factors each supports.&lt;/li&gt;&#xA;&lt;li&gt;Move the identity provider to phishing-resistant factors for admins first, then everyone.&lt;/li&gt;&#xA;&lt;li&gt;Hand out hardware keys, two per person.&lt;/li&gt;&#xA;&lt;li&gt;Switch off SMS and password-only paths one system at a time.&lt;/li&gt;&#xA;&lt;li&gt;Test recovery with a person who has lost everything.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;conclusion&#34;&gt;Conclusion&lt;/h2&gt;&#xA;&lt;p&gt;Passwords made sense when one user and one machine shared one secret. The modern web gives every person hundreds of accounts, and attackers automate against all of them. Passkeys and hardware keys fix the structure: no shared secret exists, so none leaks and none can be typed into a fake page.&lt;/p&gt;&#xA;&lt;p&gt;Authenticator apps and email OTP are useful stepping stones when a service lacks better options. Treat them as that, and plan the move off them.&lt;/p&gt;&#xA;&lt;p&gt;We build authentication into web platforms, mobile apps and IoT products, from passkey login to hardware-backed device identity. If you want to move a product off passwords or review the one you have, &lt;a href=&#34;mailto:hello@cimpleo.com&#34;&gt;get in touch&lt;/a&gt;.&lt;/p&gt;&#xA;</content:encoded>
    </item>
    <item>
      <title>How to Protect an E-commerce Store from Bots, Card Testing, and DDoS</title>
      <link>https://cimpleo.com/blog/ecommerce-bot-ddos-protection/</link>
      <pubDate>Mon, 20 Jul 2026 00:00:00 +0000</pubDate>
      <guid isPermaLink="true">https://cimpleo.com/blog/ecommerce-bot-ddos-protection/</guid>
      <description>A practical guide to e-commerce bot protection: detecting card testing fraud, fake order floods, price scraping, credential stuffing, and L7 DDoS before they cost you sales.</description>
      <content:encoded>&lt;p&gt;A store that makes money is a target. Not eventually — immediately. The traffic that hits an online store the moment it starts converting includes bots testing stolen cards, scrapers pricing out your catalogue, and scripts placing fake orders to drain your stock. None of it looks like an attack in your analytics dashboard. It looks like traffic, until the chargeback fees and the empty inventory tell you otherwise.&lt;/p&gt;&#xA;&lt;p&gt;This is a practical rundown of the attack patterns that specifically target e-commerce stores, how to detect each one, and what mitigation actually looks like — not &amp;ldquo;install a firewall and hope.&amp;rdquo;&lt;/p&gt;&#xA;&lt;h2 id=&#34;card-testing-the-fraud-you-dont-see-until-the-chargebacks-arrive&#34;&gt;Card Testing: The Fraud You Don&amp;rsquo;t See Until the Chargebacks Arrive&lt;/h2&gt;&#xA;&lt;p&gt;Card testing (carding) is bots running stolen card numbers through your checkout in small automated batches to find which ones still work. A single stolen-card list can contain thousands of numbers; testing them against your store is cheaper and faster than testing them against a bank directly.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;What it looks like:&lt;/strong&gt; a burst of low-value transaction attempts, often under $5, from a rotating set of IPs, with an abnormally high decline rate. Real customers don&amp;rsquo;t attempt five failed card numbers in ninety seconds — bots do.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Why it costs you even when the card fails:&lt;/strong&gt; every attempt — successful or not — burns your payment gateway&amp;rsquo;s fraud-check quota, and repeated failed authorizations can get your merchant account flagged for review. The cards that do work get used for a small &amp;ldquo;test&amp;rdquo; purchase, then a much larger fraudulent order follows within hours.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Mitigation:&lt;/strong&gt; rate-limit checkout attempts per session and per IP. Flag and hold orders where the billing address, IP geolocation, and card-issuing bank country disagree. Add a velocity check — more than two to three failed authorizations from a single session should trigger a hold, not a retry prompt.&lt;/p&gt;&#xA;&lt;h2 id=&#34;fake-order-floods&#34;&gt;Fake Order Floods&lt;/h2&gt;&#xA;&lt;p&gt;Automated bots submit bulk fake orders — sometimes real card numbers with no intent to pay via other means, sometimes exploiting a &amp;ldquo;buy now, pay on delivery&amp;rdquo; or invoice flow. The goal varies: drain limited-stock inventory during a drop, disrupt a promotional price by locking in stock nobody pays for, or simply overwhelm your fulfilment team with orders that later cancel.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;What it looks like:&lt;/strong&gt; a spike in order volume with no matching spike in payment completions, concentrated in a narrow time window, often targeting a specific SKU or promotional price.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Mitigation:&lt;/strong&gt; order validation before the order reaches your fulfilment queue — CAPTCHA or a proof-of-work challenge on checkout during high-risk windows (drops, flash sales), and a hold state for orders that haven&amp;rsquo;t completed payment within a set window rather than reserving stock indefinitely.&lt;/p&gt;&#xA;&lt;h2 id=&#34;price-and-catalogue-scraping&#34;&gt;Price and Catalogue Scraping&lt;/h2&gt;&#xA;&lt;p&gt;Competitors and price-comparison aggregators scrape your product pages on a schedule to track pricing and stock levels. This isn&amp;rsquo;t illegal in most jurisdictions, but it erodes any pricing advantage the moment you make a change, and heavy scraping traffic itself can degrade performance for real shoppers.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;What it looks like:&lt;/strong&gt; structured, repetitive requests to product and category pages at a fixed interval, often from a rotating pool of IPs and user agents designed to blend in with organic traffic.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Mitigation:&lt;/strong&gt; TLS fingerprinting and behavioral analysis catch scrapers that rotate surface-level identifiers (IP, User-Agent) but can&amp;rsquo;t easily fake the deeper connection-level signature. Rate limiting on non-authenticated catalogue requests slows scraping without affecting real browsing patterns.&lt;/p&gt;&#xA;&lt;h2 id=&#34;credential-stuffing-on-customer-accounts&#34;&gt;Credential Stuffing on Customer Accounts&lt;/h2&gt;&#xA;&lt;p&gt;Leaked username/password lists from unrelated breaches get tested against your login page at scale, because password reuse means a meaningful percentage will work. A compromised customer account often has a saved payment method attached — turning a login page into a payment fraud vector.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;What it looks like:&lt;/strong&gt; high-volume login attempts across many different usernames, low success rate, distributed across IPs, frequently at off-peak hours when detection attention is lowest.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Mitigation:&lt;/strong&gt; rate limiting and progressive lockout per account and per IP, alerting on unusual login patterns (new device + new location + immediate payment method access), and — if you&amp;rsquo;re not already — requiring re-authentication before a saved card can be charged.&lt;/p&gt;&#xA;&lt;h2 id=&#34;l7-ddos-during-your-highest-value-traffic-window&#34;&gt;L7 DDoS During Your Highest-Value Traffic Window&lt;/h2&gt;&#xA;&lt;p&gt;Application-layer DDoS floods are frequently timed deliberately: a product launch, a flash sale, Black Friday — the exact moment downtime costs the most in lost revenue and the exact moment your support team is least able to absorb the ticket spike.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;What it looks like:&lt;/strong&gt; a sudden traffic surge that doesn&amp;rsquo;t convert to checkouts, targeting a specific endpoint (search, product page, checkout) rather than distributed evenly across the site — a signal it&amp;rsquo;s designed to exhaust a specific resource, not just generate noise.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Mitigation:&lt;/strong&gt; rate limiting and traffic shaping tuned to distinguish a flood from a legitimate spike (a marketing email blast produces a spike too — the difference is in request patterns, not raw volume), plus infrastructure that can absorb volumetric floods before they reach your application layer at all.&lt;/p&gt;&#xA;&lt;h2 id=&#34;shared-waf-vs-isolated-infrastructure&#34;&gt;Shared WAF vs. Isolated Infrastructure&lt;/h2&gt;&#xA;&lt;p&gt;Most stores run behind a shared WAF platform — Cloudflare and similar services included — where your traffic sits alongside millions of other sites, sharing rule sets and rate-limit pools. That&amp;rsquo;s adequate for a lot of threats, but it isn&amp;rsquo;t isolation: your infrastructure is still discoverable, and a shared rate-limit pool can behave unpredictably under someone else&amp;rsquo;s attack traffic.&lt;/p&gt;&#xA;&lt;p&gt;We built &lt;a href=&#34;https://cimpleo.com/labs/voidfort/&#34;&gt;VoidFort&lt;/a&gt;, our managed web application firewall, with protection dedicated to each customer instead of shared with other sites. It reduces the risk from the patterns above: card testing, fake order floods, scraping, credential stuffing and L7 floods.&lt;/p&gt;&#xA;&lt;h2 id=&#34;where-to-start&#34;&gt;Where to Start&lt;/h2&gt;&#xA;&lt;p&gt;Most of the mitigations above don&amp;rsquo;t require replacing your platform — they require configuration most stores haven&amp;rsquo;t set up yet: rate limiting tuned to checkout and login endpoints, order validation before fulfilment, and traffic pattern monitoring that flags anomalies instead of raw volume.&lt;/p&gt;&#xA;&lt;p&gt;We run security audits for e-commerce stores — Shopify, WooCommerce, Magento, or custom-built — that map your current exposure against the patterns above and deliver prioritised, costed recommendations. See our &lt;a href=&#34;https://cimpleo.com/services/ecommerce-security/&#34;&gt;E-commerce Bot &amp;amp; DDoS Protection service&lt;/a&gt; for what that engagement looks like, or &lt;a href=&#34;mailto:hello@cimpleo.com&#34;&gt;get in touch&lt;/a&gt; directly.&lt;/p&gt;&#xA;</content:encoded>
    </item>
    <item>
      <title>The Ultimate Guide to MVP Development</title>
      <link>https://cimpleo.com/blog/the-ultimate-guide-to-mvp-development/</link>
      <pubDate>Sun, 06 Jun 2021 08:43:00 +0600</pubDate>
      <guid isPermaLink="true">https://cimpleo.com/blog/the-ultimate-guide-to-mvp-development/</guid>
      <description>A step-by-step guide to building an MVP — from defining the core problem and feature scope to choosing a tech stack and shipping your first version fast.</description>
      <content:encoded>&lt;picture&gt;&lt;source type=&#34;image/webp&#34; data-srcset=&#34;https://cimpleo.com/uploads/blog_mvp_large_hu_bdb1f7af89ea14bc.webp 450w, https://cimpleo.com/uploads/blog_mvp_large_hu_5818ae1b7072c9f1.webp 1070w, https://cimpleo.com/uploads/blog_mvp_large_hu_28bc0713d0bc6616.webp 1080w&#34; sizes=&#34;(max-width: 480px) 450px, 1070px&#34;&gt;&#xA;&lt;source type=&#34;image/jpeg&#34; data-srcset=&#34;https://cimpleo.com/uploads/blog_mvp_large_hu_57e0250b11862d2d.jpg 450w, https://cimpleo.com/uploads/blog_mvp_large_hu_a047f2b3c80f5a4c.jpg 1070w, https://cimpleo.com/uploads/blog_mvp_large.jpg 1080w&#34; sizes=&#34;(max-width: 480px) 450px, 1070px&#34;&gt;&#xA;&lt;img class=&#34;img-fluid lazyload&#34; alt=&#34;MVP Building&#34; width=&#34;1080&#34; height=&#34;507&#34; data-src=&#34;https://cimpleo.com/uploads/blog_mvp_large.jpg&#34;&gt;&#xA;&lt;/picture&gt;&#xA;&lt;p&gt;An MVP is the smallest version of your product that puts a real hypothesis in front of real users. Done right, it costs less, ships faster, and produces more useful information than a fully-featured first release. Here&amp;rsquo;s how to build one.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-an-mvp-actually-is&#34;&gt;What an MVP Actually Is&lt;/h2&gt;&#xA;&lt;p&gt;An MVP is not a rough version of your full product. It&amp;rsquo;s the minimum feature set required to test one specific assumption with real users. The goal is learning, not shipping.&lt;/p&gt;&#xA;&lt;p&gt;The distinction matters because teams routinely build too much. They add features for edge cases nobody has encountered yet, polish flows users might never reach, and spend three months building what could be validated in three weeks. An MVP forces you to identify what you&amp;rsquo;re actually testing and strip everything else out.&lt;/p&gt;&#xA;&lt;p&gt;The practical benefits follow from this discipline: lower development cost, faster time to market, and feedback grounded in real usage rather than stakeholder speculation.&lt;/p&gt;&#xA;&lt;h2 id=&#34;mvp-development-strategy-decide-what-youre-testing&#34;&gt;MVP Development Strategy: Decide What You&amp;rsquo;re Testing&lt;/h2&gt;&#xA;&lt;p&gt;Strategy comes before features. Every MVP tests one primary hypothesis — &amp;ldquo;restaurants will pay for automated inventory reordering&amp;rdquo;, &amp;ldquo;field technicians will file reports from their phone&amp;rdquo;. Write that hypothesis down first; every scope decision follows from it.&lt;/p&gt;&#xA;&lt;p&gt;Three strategic calls shape the build:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;The riskiest assumption goes first.&lt;/strong&gt; If nobody wants the product, a beautiful UI won&amp;rsquo;t save it. Test demand before polish — a landing page with a signup form has killed more bad ideas cheaply than any focus group.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Build vs fake.&lt;/strong&gt; Not every feature needs code. Dropbox validated with a video; concierge MVPs validate with a human behind the curtain. Code only what must be real for the test to be honest.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Pick the stack for the next 12 months, not the next 10 years.&lt;/strong&gt; Boring, well-documented technology ships faster and hires easier. We cover this decision in detail in &lt;a href=&#34;https://cimpleo.com/blog/tech-stack-mvp/&#34;&gt;choosing a tech stack for your MVP&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;the-mvp-development-process-7-phases&#34;&gt;The MVP Development Process: 7 Phases&lt;/h2&gt;&#xA;&lt;p&gt;Follow these phases to bring your MVP to life:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Initial Consultation:&lt;/strong&gt; Begin by discussing your concept with experienced professionals. This step helps refine your idea and sets the foundation for development.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Technical Specification:&lt;/strong&gt; Collaborate with your team to create a detailed technical specification. This document should outline your ideas, hypotheses, and the project&amp;rsquo;s scope. It&amp;rsquo;s crucial for assessing potential risks and costs.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Engineering Phase:&lt;/strong&gt; Start building the MVP&amp;rsquo;s core functionality. Focus on designing an intuitive user flow that addresses the primary user problem effectively.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Concept Design:&lt;/strong&gt; Create visual representations of your product. This step is vital for aligning the development process with your vision and ensuring a cohesive user experience.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Feedback Collection:&lt;/strong&gt; Implement testing mechanisms to gather user insights. This feedback is invaluable for guiding further development and improvements.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Iterative Testing:&lt;/strong&gt; Continuously test your MVP throughout the development process. Consider both internal (alpha) and external (beta) testing phases to ensure comprehensive feedback.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Launch and Analysis:&lt;/strong&gt; Upon release, closely monitor user behavior, statistics, and reviews. This data-driven approach will inform your future development strategies and help you refine your product.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;how-much-does-mvp-development-cost&#34;&gt;How Much Does MVP Development Cost?&lt;/h2&gt;&#xA;&lt;p&gt;Realistic 2026 ranges from our own quotes: a web MVP runs $40,000–$80,000, a mobile MVP (iOS + Android) $60,000–$150,000, an end-to-end IoT MVP with custom hardware and firmware $80,000–$150,000. An IoT MVP on off-the-shelf hardware without custom firmware costs less. Scope drives the number more than hourly rates do — cutting the feature list from 40 items to 8 saves more than negotiating $10 off the rate. Full pricing breakdown and engagement models: &lt;a href=&#34;https://cimpleo.com/services/mvp-development/&#34;&gt;MVP development services&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;technical-debt-in-an-mvp-whats-acceptable&#34;&gt;Technical Debt in an MVP: What&amp;rsquo;s Acceptable&lt;/h2&gt;&#xA;&lt;p&gt;An MVP trades polish for speed — but not all shortcuts cost the same later. Acceptable debt: hardcoded configuration, a missing admin panel, manual deployment. Expensive debt: no data model discipline (migrations become archaeology), no authentication boundaries (a security rewrite), and untested payment flows (refunds and support tickets).&lt;/p&gt;&#xA;&lt;p&gt;The rule: take debt in things you can replace behind an interface, never in things that touch data integrity or money. Document every shortcut in the repo as you take it — the cost of technical debt is not the shortcut itself, it&amp;rsquo;s the six months later when nobody remembers why.&lt;/p&gt;&#xA;&lt;h2 id=&#34;success-stories-learning-from-mvp-triumphs&#34;&gt;Success Stories: Learning from MVP Triumphs&lt;/h2&gt;&#xA;&lt;h3 id=&#34;dropbox-the-power-of-visual-mvp&#34;&gt;Dropbox: The Power of Visual MVP&lt;/h3&gt;&#xA;&lt;p&gt;Drew Houston, Dropbox&amp;rsquo;s co-founder and CEO, demonstrated the potential of a video MVP. By creating a simple demonstration video of Dropbox&amp;rsquo;s functionality, Houston:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Generated significant buzz around the product&lt;/li&gt;&#xA;&lt;li&gt;Collected 70,000 email addresses from potential users in just one day&lt;/li&gt;&#xA;&lt;li&gt;Validated the product concept before full development&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;This approach not only saved resources but also provided concrete evidence of market demand, facilitating easier fundraising and development.&lt;/p&gt;&#xA;&lt;h3 id=&#34;spotify-testing-assumptions-with-real-users&#34;&gt;Spotify: Testing Assumptions with Real Users&lt;/h3&gt;&#xA;&lt;p&gt;In 2006, Spotify launched as a startup with a clear MVP strategy. By placing a basic prototype in the hands of real users, Spotify:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Demonstrated genuine user interest in their streaming model&lt;/li&gt;&#xA;&lt;li&gt;Secured crucial support from music labels and investors&lt;/li&gt;&#xA;&lt;li&gt;Laid the groundwork for their revolutionary music streaming service&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;These examples highlight the power of MVP in validating ideas, attracting investment, and paving the way for successful product launches.&lt;/p&gt;&#xA;&lt;p&gt;The MVP process is iterative by design. You ship, you measure, you learn what users actually need, and you build that — rather than what you assumed they&amp;rsquo;d need before you had any data. The teams that get this right move faster than competitors who spend longer building the &amp;ldquo;complete&amp;rdquo; first version.&lt;/p&gt;&#xA;&lt;p&gt;Ready to build? CimpleO ships &lt;a href=&#34;https://cimpleo.com/services/mvp-development/&#34;&gt;MVPs in 8–12 weeks&lt;/a&gt; — scoped to the hypothesis you&amp;rsquo;re testing, priced fixed, and structured so the codebase survives your Series A technical due diligence. &lt;a href=&#34;mailto:hello@cimpleo.com&#34;&gt;Tell us your idea&lt;/a&gt; — we&amp;rsquo;ll respond within 72 hours.&lt;/p&gt;&#xA;</content:encoded>
    </item>
    <item>
      <title>Mobile App Development Company in Thailand</title>
      <link>https://cimpleo.com/blog/top-mobile-app-development-company-in-thailand/</link>
      <pubDate>Fri, 13 Oct 2023 00:00:00 +0000</pubDate>
      <guid isPermaLink="true">https://cimpleo.com/blog/top-mobile-app-development-company-in-thailand/</guid>
      <description>CimpleO builds iOS and Android apps for clients across Thailand and Southeast Asia — React Native, native, and cross-platform. Ranked a top mobile app development company by FirmTalks.</description>
      <content:encoded>&lt;picture class=&#34;badge&#34;&gt;&lt;source type=&#34;image/webp&#34; data-srcset=&#34;https://cimpleo.com/uploads/firmtalks_hu_b4767cf250f2b5f4.webp 450w, https://cimpleo.com/uploads/firmtalks_hu_d28e501b778b518.webp 1070w, https://cimpleo.com/uploads/firmtalks_hu_17dd95ec0e363130.webp 1600w&#34; sizes=&#34;(max-width: 480px) 450px, 1070px&#34;&gt;&#xA;&lt;source type=&#34;image/png&#34; data-srcset=&#34;https://cimpleo.com/uploads/firmtalks_hu_4d587d1ca2d064b3.png 450w, https://cimpleo.com/uploads/firmtalks_hu_9c1040519ef37931.png 1070w, https://cimpleo.com/uploads/firmtalks.png 1600w&#34; sizes=&#34;(max-width: 480px) 450px, 1070px&#34;&gt;&#xA;&lt;img class=&#34;img-fluid lazyload&#34; alt=&#34;FirmTalks 2023 Award&#34; width=&#34;1600&#34; height=&#34;1600&#34; data-src=&#34;https://cimpleo.com/uploads/firmtalks.png&#34;&gt;&#xA;&lt;/picture&gt;&#xA;&lt;p&gt;FirmTalks named CimpleO one of the &lt;a href=&#34;https://firmstalk.com/mobile-app-development-companies-in-thailand/&#34;&gt;top mobile app development companies in Thailand&lt;/a&gt; — a B2B review platform that ranks IT providers based on verified client feedback and delivery history.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-we-build&#34;&gt;What We Build&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;React Native apps&lt;/strong&gt; — a single TypeScript codebase that compiles to iOS and Android. Cuts time-to-market roughly in half versus two native codebases, with near-native performance for most app types. Used in most of our &lt;a href=&#34;https://cimpleo.com/services/mobile/&#34;&gt;mobile projects&lt;/a&gt;. Not sure which framework fits? See our &lt;a href=&#34;https://cimpleo.com/blog/react-native-vs-flutter-2026/&#34;&gt;React Native vs Flutter comparison&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Native iOS and Android&lt;/strong&gt; — Swift for iOS, Kotlin for Android. The right call when the app integrates tightly with hardware (Bluetooth, NFC, camera pipelines), demands 60fps UI, or needs features React Native can&amp;rsquo;t expose cleanly.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Backend APIs&lt;/strong&gt; — mobile apps need a backend. Our &lt;a href=&#34;https://cimpleo.com/services/fullstack-develop/&#34;&gt;full-stack team&lt;/a&gt; builds REST and GraphQL APIs in Node.js, handles authentication, push notifications, file storage, and third-party integrations (payment gateways, maps, logistics APIs, CRMs).&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;App maintenance and upgrades&lt;/strong&gt; — OS updates break things. We offer ongoing maintenance contracts for apps we build and for existing apps you need someone to take over.&lt;/p&gt;&#xA;&lt;h2 id=&#34;app-types-weve-shipped&#34;&gt;App Types We&amp;rsquo;ve Shipped&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;On-demand platforms&lt;/strong&gt; — food delivery, logistics, service booking with real-time tracking and driver/provider apps&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Field service apps&lt;/strong&gt; — offline-first, GPS tagging, form submission, sync on reconnect&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Aviation and logistics&lt;/strong&gt; — &lt;a href=&#34;https://cimpleo.com/projects/evo/&#34;&gt;trip support, flight ops, fuel pricing&lt;/a&gt;, booking management&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Healthcare&lt;/strong&gt; — appointment scheduling, teleconsultation, health record access&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;eCommerce&lt;/strong&gt; — mobile storefronts with cart, checkout, loyalty points, push-based re-engagement&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;how-a-project-runs&#34;&gt;How a Project Runs&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;Discovery (1–2 weeks).&lt;/strong&gt; We map user flows, define the MVP feature set, and choose the tech stack. Output: wireframes, architecture diagram, phased delivery plan with cost per phase.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Build (10–20 weeks).&lt;/strong&gt; Two-week sprints. Working builds on TestFlight and Play Store internal track from week two. You test on a real device, not just screenshots.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Launch.&lt;/strong&gt; App Store and Google Play submission managed by us. Post-launch monitoring for crashes, ANRs, and store review issues.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Iteration.&lt;/strong&gt; Feature additions, OS compatibility updates, performance tuning — scoped and priced per phase.&lt;/p&gt;&#xA;&lt;h2 id=&#34;working-with-us-from-thailand&#34;&gt;Working With Us From Thailand&lt;/h2&gt;&#xA;&lt;p&gt;All projects run remotely. We work in English, adjust to your time zone, and use async communication (Slack or Telegram) plus weekly video calls. Thai and SEA clients get direct access to the developer working on their project — no account manager relay.&lt;/p&gt;&#xA;&lt;p&gt;Need more than a mobile app — a web platform, backend system, or IoT product? We&amp;rsquo;re also ranked among the &lt;a href=&#34;https://cimpleo.com/blog/top-custom-software-development-company-in-thailand/&#34;&gt;top custom software development companies in Thailand&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;mailto:hello@cimpleo.com&#34;&gt;Tell us what you want to build&lt;/a&gt; — we&amp;rsquo;ll scope it and send a fixed-price estimate within 48 hours.&lt;/p&gt;&#xA;</content:encoded>
    </item>
    <item>
      <title>Custom Software Development Company in Thailand</title>
      <link>https://cimpleo.com/blog/top-custom-software-development-company-in-thailand/</link>
      <pubDate>Fri, 23 Feb 2024 00:00:00 +0000</pubDate>
      <guid isPermaLink="true">https://cimpleo.com/blog/top-custom-software-development-company-in-thailand/</guid>
      <description>CimpleO builds custom web apps, mobile platforms, and backend systems for clients across Thailand and Southeast Asia. Ranked a top custom software development company by FirmTalks.</description>
      <content:encoded>&lt;picture class=&#34;badge&#34;&gt;&lt;source type=&#34;image/webp&#34; data-srcset=&#34;https://cimpleo.com/uploads/firmtalks2024_hu_bf7c30ba82a49436.webp 450w, https://cimpleo.com/uploads/firmtalks2024_hu_88e7d3cf45f26d86.webp 1070w, https://cimpleo.com/uploads/firmtalks2024_hu_b74acaa6c3de6d03.webp 1600w&#34; sizes=&#34;(max-width: 480px) 450px, 1070px&#34;&gt;&#xA;&lt;source type=&#34;image/png&#34; data-srcset=&#34;https://cimpleo.com/uploads/firmtalks2024_hu_85dfbabec5d2c61b.png 450w, https://cimpleo.com/uploads/firmtalks2024_hu_2ab4c6a1c647dcf8.png 1070w, https://cimpleo.com/uploads/firmtalks2024.png 1600w&#34; sizes=&#34;(max-width: 480px) 450px, 1070px&#34;&gt;&#xA;&lt;img class=&#34;img-fluid lazyload&#34; alt=&#34;FirmTalks 2024 Award&#34; width=&#34;1600&#34; height=&#34;1600&#34; data-src=&#34;https://cimpleo.com/uploads/firmtalks2024.png&#34;&gt;&#xA;&lt;/picture&gt;&#xA;&lt;p&gt;FirmTalks ranked CimpleO among the &lt;a href=&#34;https://firmstalk.com/top-10-software-development-companies-in-thailand/&#34;&gt;top custom software development companies in Thailand&lt;/a&gt; — a B2B review platform that evaluates IT providers on client feedback, delivery track record, and domain coverage.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-we-build&#34;&gt;What We Build&lt;/h2&gt;&#xA;&lt;p&gt;Custom software means the project is built to your specification — not configured from a SaaS template. The companies that come to us need one of the following:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Web applications&lt;/strong&gt; — multi-tenant platforms, internal tools, customer portals, data dashboards, marketplace software. Built on React or Vue frontends with Node.js, Python, or PHP backends. See &lt;a href=&#34;https://cimpleo.com/services/fullstack-develop/&#34;&gt;full-stack web development&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Mobile apps&lt;/strong&gt; — iOS and Android, built in React Native or native when performance demands it. Delivery tracking, booking systems, field service apps, on-demand platforms. We&amp;rsquo;re also ranked among the &lt;a href=&#34;https://cimpleo.com/blog/top-mobile-app-development-company-in-thailand/&#34;&gt;top mobile app development companies in Thailand&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Backend systems and APIs&lt;/strong&gt; — REST and GraphQL APIs, microservices, real-time event pipelines, integrations with third-party services (payment gateways, CRMs, ERPs, logistics APIs).&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;eCommerce platforms&lt;/strong&gt; — B2C and B2B stores, custom checkout flows, inventory management, loyalty programs. We&amp;rsquo;ve built &lt;a href=&#34;https://cimpleo.com/services/ecommerce/&#34;&gt;Drupal Commerce and WooCommerce systems&lt;/a&gt; with POS integrations, multi-currency support, and full product catalog management.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;IoT and embedded systems&lt;/strong&gt; — connected device backends, sensor data ingestion, remote monitoring dashboards. Our &lt;a href=&#34;https://cimpleo.com/services/iot/&#34;&gt;hardware team&lt;/a&gt; handles firmware through to the cloud layer.&lt;/p&gt;&#xA;&lt;h2 id=&#34;who-hires-us&#34;&gt;Who Hires Us&lt;/h2&gt;&#xA;&lt;p&gt;Thai and Southeast Asian clients — from Bangkok fintech startups to established Chiang Mai retailers — typically come to us for one of three reasons:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;strong&gt;No good local fit.&lt;/strong&gt; The domain is specialized (aviation ops, financial data, medical equipment) and a regional generalist agency can&amp;rsquo;t cover it.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Team extension.&lt;/strong&gt; A startup or mid-size company has in-house developers but needs senior architecture guidance or specific expertise for a sprint.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Speed.&lt;/strong&gt; An internal team quote is 12+ months; we scope an &lt;a href=&#34;https://cimpleo.com/services/mvp-development/&#34;&gt;MVP in 8–14 weeks&lt;/a&gt; and ship it.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Past projects that serve clients across Asia include a &lt;a href=&#34;https://cimpleo.com/projects/ceic/&#34;&gt;macroeconomic data platform&lt;/a&gt; used by analysts and investors across 125+ countries, and a &lt;a href=&#34;https://cimpleo.com/projects/evo/&#34;&gt;mobile app for aviation trip support&lt;/a&gt; covering fuel pricing and flight operations across the Asia-Pacific region.&lt;/p&gt;&#xA;&lt;h2 id=&#34;how-a-project-runs&#34;&gt;How a Project Runs&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;Discovery (1–2 weeks).&lt;/strong&gt; We map your requirements, data flows, and integrations. Output: technical spec, architecture proposal, phased delivery plan with fixed costs per phase.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;MVP (6–14 weeks).&lt;/strong&gt; Core features shipped in two-week sprints. You see working software by week four, not a Figma deck. Staging environment with real data from week two.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Iteration.&lt;/strong&gt; Based on what you learn from the MVP: additional modules, integrations, performance tuning, mobile app. Each phase is its own scope and estimate.&lt;/p&gt;&#xA;&lt;p&gt;All communication in English. Weekly sync calls. Direct Slack or Telegram access to the team.&lt;/p&gt;&#xA;&lt;h2 id=&#34;recognition&#34;&gt;Recognition&lt;/h2&gt;&#xA;&lt;p&gt;FirmTalks is a B2B review platform that verifies client feedback and evaluates IT firms on delivery consistency, communication quality, and domain depth. The ranking reflects our client satisfaction scores and delivery record across web, mobile, and backend projects.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;mailto:hello@cimpleo.com&#34;&gt;Tell us about your project&lt;/a&gt; — we&amp;rsquo;ll scope what it takes to build it.&lt;/p&gt;&#xA;</content:encoded>
    </item>
    <item>
      <title>React Native vs Flutter in 2026: Which to Choose</title>
      <link>https://cimpleo.com/blog/react-native-vs-flutter-2026/badge.svg</link>
      <pubDate>Thu, 25 Jun 2026 00:00:00 +0000</pubDate>
      <guid isPermaLink="true">https://cimpleo.com/blog/react-native-vs-flutter-2026/badge.svg</guid>
      <description>React Native vs Flutter compared on performance, developer experience, ecosystem size, and real production use cases. No hype — what the numbers and real projects say.</description>
      <content:encoded>&lt;p&gt;Both React Native and Flutter are mainstream in 2026. Both ship to iOS and Android from one codebase. Both have corporate backing, active communities, and production deployments at scale. The choice is not obvious, and most existing comparisons are either outdated or written by advocates for one side. Here is what a product team actually needs to know.&lt;/p&gt;&#xA;&lt;h2 id=&#34;at-a-glance&#34;&gt;At a Glance&lt;/h2&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th&gt;Factor&lt;/th&gt;&#xA;          &lt;th&gt;React Native&lt;/th&gt;&#xA;          &lt;th&gt;Flutter&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Language&lt;/td&gt;&#xA;          &lt;td&gt;TypeScript/JavaScript&lt;/td&gt;&#xA;          &lt;td&gt;Dart&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Rendering&lt;/td&gt;&#xA;          &lt;td&gt;Native components (New Arch)&lt;/td&gt;&#xA;          &lt;td&gt;Custom (Skia/Impeller)&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Performance&lt;/td&gt;&#xA;          &lt;td&gt;Very good&lt;/td&gt;&#xA;          &lt;td&gt;Excellent&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Ecosystem&lt;/td&gt;&#xA;          &lt;td&gt;Large (npm)&lt;/td&gt;&#xA;          &lt;td&gt;Growing (pub.dev)&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Hot reload&lt;/td&gt;&#xA;          &lt;td&gt;Yes&lt;/td&gt;&#xA;          &lt;td&gt;Yes&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Web support&lt;/td&gt;&#xA;          &lt;td&gt;React Native Web (limited)&lt;/td&gt;&#xA;          &lt;td&gt;Flutter Web (reasonable)&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Desktop&lt;/td&gt;&#xA;          &lt;td&gt;Limited&lt;/td&gt;&#xA;          &lt;td&gt;Windows/macOS/Linux&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Community&lt;/td&gt;&#xA;          &lt;td&gt;Larger&lt;/td&gt;&#xA;          &lt;td&gt;Growing fast&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;h2 id=&#34;performance&#34;&gt;Performance&lt;/h2&gt;&#xA;&lt;p&gt;Flutter&amp;rsquo;s Impeller renderer, default since Flutter 3.10, eliminated most of the frame-drop issues that gave early Flutter a bad reputation. It compiles shaders ahead of time, which removes the stutter on first render that Skia caused.&lt;/p&gt;&#xA;&lt;p&gt;React Native&amp;rsquo;s New Architecture — Fabric for the UI layer, JSI for the JavaScript bridge — removes the asynchronous serialization bottleneck that made the old architecture feel sluggish under load. As of 2026, new React Native projects default to the New Architecture.&lt;/p&gt;&#xA;&lt;p&gt;Where the gap shows up: complex animations and long list scrolling. Flutter renders custom widgets via its own engine, so a 60fps parallax scroll or a physics-based onboarding animation stays smooth. React Native delegates to native components, which adds a coordination layer that occasionally drops frames under heavy load.&lt;/p&gt;&#xA;&lt;p&gt;For CRUD apps, data dashboards, and standard e-commerce flows, you will not notice a difference. Startup time is comparable. The performance argument for Flutter only matters if you are building something animation-heavy or targeting sub-100ms interaction response on lower-end Android hardware.&lt;/p&gt;&#xA;&lt;h2 id=&#34;developer-experience&#34;&gt;Developer Experience&lt;/h2&gt;&#xA;&lt;p&gt;React Native suits teams that already write &lt;a href=&#34;https://cimpleo.com/hire/typescript/&#34;&gt;TypeScript&lt;/a&gt;. Onboarding a web developer takes days, not weeks. Debugging uses Flipper or browser-style devtools. Hot reload is fast on most codebases.&lt;/p&gt;&#xA;&lt;p&gt;The Metro bundler gets slow on large monorepos — 10,000+ modules will push rebuild times over 10 seconds even with caching. This is a known pain point with partial workarounds but no clean fix yet.&lt;/p&gt;&#xA;&lt;p&gt;Flutter&amp;rsquo;s language, Dart, takes a JavaScript developer 2–4 weeks to feel comfortable in. The Flutter DevTools inspector is cleaner than React Native&amp;rsquo;s — the widget tree is more predictable than React&amp;rsquo;s component tree under dynamic layouts. Dart compiles ahead-of-time, which produces smaller binaries and faster startup than Metro&amp;rsquo;s JS bundle approach.&lt;/p&gt;&#xA;&lt;p&gt;Hot reload in Flutter is also fast, and the error messages are more descriptive than React Native&amp;rsquo;s when something breaks at the layout level.&lt;/p&gt;&#xA;&lt;h2 id=&#34;ecosystem-and-libraries&#34;&gt;Ecosystem and Libraries&lt;/h2&gt;&#xA;&lt;p&gt;React Native has access to the full npm ecosystem — over 15,000 packages with mobile support. Quality varies: many packages are abandoned or missing Android/iOS parity. The core libraries are well-maintained: React Navigation handles routing, Zustand or Redux Toolkit handles state, and Expo has reduced native setup friction significantly.&lt;/p&gt;&#xA;&lt;p&gt;Flutter&amp;rsquo;s pub.dev lists 35,000+ packages, but the mobile-relevant subset is smaller. The trade-off is quality: Google actively maintains first-party packages for camera, maps, Firebase, and in-app purchases, and they tend to have better platform parity than their React Native counterparts.&lt;/p&gt;&#xA;&lt;p&gt;Where React Native wins: legacy SDK integrations. If your client needs to drop in a specific payment terminal SDK, a proprietary BLE library, or a third-party analytics tool, there is usually an npm package. Flutter may require writing a native plugin in Kotlin and Swift, which adds time if your team does not have that background.&lt;/p&gt;&#xA;&lt;h2 id=&#34;when-to-choose-react-native&#34;&gt;When to Choose React Native&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Your team writes TypeScript and has &lt;a href=&#34;https://cimpleo.com/hire/react/&#34;&gt;React&lt;/a&gt; experience&lt;/li&gt;&#xA;&lt;li&gt;You depend on a specific npm package or native SDK with no Flutter equivalent&lt;/li&gt;&#xA;&lt;li&gt;You share business logic or API types with a React web app&lt;/li&gt;&#xA;&lt;li&gt;Your hiring budget favors a larger talent pool&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;when-to-choose-flutter&#34;&gt;When to Choose Flutter&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Starting a new project with no existing mobile codebase&lt;/li&gt;&#xA;&lt;li&gt;Pixel-perfect custom UI that does not map to native iOS/Android components&lt;/li&gt;&#xA;&lt;li&gt;Roadmap includes mobile, web, and desktop from one codebase&lt;/li&gt;&#xA;&lt;li&gt;Animation-heavy interface: onboarding flows, data visualizations, interactive graphics&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;what-we-use&#34;&gt;What We Use&lt;/h2&gt;&#xA;&lt;p&gt;CimpleO builds with both. Our default for new projects is React Native — most clients have TypeScript teams and the npm ecosystem covers most integration requirements. We choose &lt;a href=&#34;https://cimpleo.com/hire/flutter/&#34;&gt;Flutter&lt;/a&gt; when the UI spec calls for custom widgets that native components cannot deliver cleanly, or when the client&amp;rsquo;s roadmap includes desktop targets. Both are production-proven across our project portfolio.&lt;/p&gt;&#xA;&lt;p&gt;Building a cross-platform mobile app and need a team that knows both? CimpleO&amp;rsquo;s &lt;a href=&#34;https://cimpleo.com/services/mobile/&#34;&gt;mobile development team&lt;/a&gt; builds in React Native and Flutter and will recommend the right choice for your project after a scoping call. &lt;a href=&#34;mailto:hello@cimpleo.com&#34;&gt;Get in touch&lt;/a&gt;.&lt;/p&gt;&#xA;</content:encoded>
    </item>
    <item>
      <title>How Much Does a Telegram Mini App Cost? (2026 Guide)</title>
      <link>https://cimpleo.com/blog/telegram-mini-app-cost/</link>
      <pubDate>Tue, 23 Jun 2026 00:00:00 +0000</pubDate>
      <guid isPermaLink="true">https://cimpleo.com/blog/telegram-mini-app-cost/</guid>
      <description>What drives the cost of a Telegram bot or Mini App: screens, backend, payments, integrations. Our projects start at $30,000; the final number depends on scope.</description>
      <content:encoded>&lt;p&gt;Telegram projects with us start at $30,000, and the final number depends on scope. This guide explains what moves that number, so you can scope your project before you call anyone.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-two-products-bot-vs-mini-app&#34;&gt;The Two Products: Bot vs Mini App&lt;/h2&gt;&#xA;&lt;p&gt;Before quoting anything, you need to know which product you&amp;rsquo;re building.&lt;/p&gt;&#xA;&lt;p&gt;A &lt;strong&gt;Telegram bot&lt;/strong&gt; responds to commands and sends messages in a chat. Users interact by typing commands or tapping inline buttons. No custom UI, no web rendering — just structured chat flows. Bots are right for notifications, support ticket routing, appointment reminders, internal data queries, and simple workflow automation.&lt;/p&gt;&#xA;&lt;p&gt;A &lt;strong&gt;Telegram Mini App&lt;/strong&gt; is a full web application that opens inside Telegram as a bottom sheet. Your own interface — navigation, forms, product grids, dashboards — built in React or Vue and rendered inside the Telegram client. Mini Apps are right for eCommerce storefronts, service booking, loyalty programs, payment collection, and anything that needs a real UI rather than a chat flow.&lt;/p&gt;&#xA;&lt;p&gt;Many production systems use both: Mini App for the interface, bot for the messaging and notifications.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-drives-telegram-bot-cost&#34;&gt;What Drives Telegram Bot Cost&lt;/h2&gt;&#xA;&lt;p&gt;Telegram projects with us start at $30,000, and the final number depends on scope. For a bot, scope comes down to:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Number of conversation states (every branch is logic)&lt;/li&gt;&#xA;&lt;li&gt;External integrations — each API connection adds scoping, mapping, and error handling&lt;/li&gt;&#xA;&lt;li&gt;Admin panel complexity — a proper CRUD interface for your team can cost as much as the bot itself&lt;/li&gt;&#xA;&lt;li&gt;Multi-language support&lt;/li&gt;&#xA;&lt;li&gt;High-volume rate limit management (Telegram limits messages per second)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;strong&gt;What you can cut:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Skip the admin panel initially — manage via direct database or a simple webhook&lt;/li&gt;&#xA;&lt;li&gt;Use a hosted bot platform for simple flows, custom-build only what needs real logic&lt;/li&gt;&#xA;&lt;li&gt;Start with one language, add more after launch&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;what-drives-telegram-mini-app-cost&#34;&gt;What Drives Telegram Mini App Cost&lt;/h2&gt;&#xA;&lt;p&gt;The same floor applies: Telegram projects with us start at $30,000, and the final number depends on scope. For a Mini App, scope comes down to:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Screen count — each screen is design + frontend + backend endpoint&lt;/li&gt;&#xA;&lt;li&gt;Payment integration (Telegram Pay, Telegram Stars)&lt;/li&gt;&#xA;&lt;li&gt;CRM/ERP connections — especially if the external API is poorly documented&lt;/li&gt;&#xA;&lt;li&gt;Real-time features (live order tracking, notifications)&lt;/li&gt;&#xA;&lt;li&gt;Custom animation or brand-heavy design&lt;/li&gt;&#xA;&lt;li&gt;Compliance requirements for your market and data&lt;/li&gt;&#xA;&lt;li&gt;iOS/Android/desktop rendering parity — they behave differently enough to require explicit QA&lt;/li&gt;&#xA;&lt;li&gt;Team seniority — who designs, builds, and reviews the work&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;strong&gt;What you can cut:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Reduce the initial feature set to the core user journey; add screens after validating traction&lt;/li&gt;&#xA;&lt;li&gt;Use Telegram&amp;rsquo;s native UI components instead of custom-designed ones&lt;/li&gt;&#xA;&lt;li&gt;Start with one market and add Telegram Pay for others after launch&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;the-payment-layer-telegram-pay-and-telegram-stars&#34;&gt;The Payment Layer: Telegram Pay and Telegram Stars&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;Telegram Pay&lt;/strong&gt; lets users pay by card inside bots and Mini Apps. Card details are stored in Telegram — no checkout form. Server-side, you need invoice creation, payment webhook verification, success/failure handling, and refund support. It adds scope and 2–4 weeks for full integration and testing.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Telegram Stars&lt;/strong&gt; is for digital goods — virtual items, content unlocks, subscriptions. The API is simpler, so integration takes less work.&lt;/p&gt;&#xA;&lt;p&gt;Telegram Pay availability varies by country. Before building, verify your geography is covered.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-affects-price-most&#34;&gt;What Affects Price Most&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;Integrations.&lt;/strong&gt; The bot or Mini App itself is often the smaller part of the budget. Connecting to your CRM, inventory system, or payment provider — with real error handling, not just happy-path code — is where hours go.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Data model.&lt;/strong&gt; A product catalog with variants, a booking system with availability logic, or an order management workflow each require careful backend design. &amp;ldquo;Simple&amp;rdquo; CRUD surfaces hide complexity.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Admin tooling.&lt;/strong&gt; Your team needs to manage content, view orders, and handle exceptions. A proper admin panel is a large share of the project.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;QA on real devices.&lt;/strong&gt; Telegram&amp;rsquo;s rendering on iOS and Android differs meaningfully. Testing on actual devices — not just the desktop web client — is non-negotiable for anything touching payments.&lt;/p&gt;&#xA;&lt;h2 id=&#34;how-to-scope-correctly&#34;&gt;How to Scope Correctly&lt;/h2&gt;&#xA;&lt;p&gt;Wrong approach: &amp;ldquo;We want a Telegram Mini App like Booking.com.&amp;rdquo; That&amp;rsquo;s a product with years of development behind it.&lt;/p&gt;&#xA;&lt;p&gt;Right approach: Pick the one core user journey that proves your concept. For an eCommerce Mini App, that&amp;rsquo;s: browse → add to cart → pay → get order confirmation. Everything else — wish lists, order history, ratings, referrals — comes in phase two after you know users actually want the product.&lt;/p&gt;&#xA;&lt;p&gt;Scope the MVP around a single hypothesis. Then expand.&lt;/p&gt;&#xA;&lt;h2 id=&#34;getting-a-quote&#34;&gt;Getting a Quote&lt;/h2&gt;&#xA;&lt;p&gt;Every project is different, so we price by scope, not from a price list. The fastest way to a real number: a 30-minute call where you describe the bot or Mini App, the systems it needs to connect to, and your launch deadline.&lt;/p&gt;&#xA;&lt;p&gt;Our &lt;a href=&#34;https://cimpleo.com/services/telegram-apps/&#34;&gt;Telegram Mini App development team&lt;/a&gt; gives you a fixed-price quote within 48 hours. We scope it, you approve it, we build it. Prefer to staff your own team instead of outsourcing the whole build? &lt;a href=&#34;https://cimpleo.com/hire/telegram-developers/&#34;&gt;Hire Telegram Mini App and bot developers&lt;/a&gt; directly, on a fixed monthly rate.&lt;/p&gt;&#xA;</content:encoded>
    </item>
    <item>
      <title>Telegram Mini App vs Bot: Which One to Build</title>
      <link>https://cimpleo.com/blog/telegram-mini-app-vs-bot/</link>
      <pubDate>Fri, 19 Jun 2026 00:00:00 +0000</pubDate>
      <guid isPermaLink="true">https://cimpleo.com/blog/telegram-mini-app-vs-bot/</guid>
      <description>Telegram Mini Apps and bots solve different problems. This guide covers the real differences, which one fits your use case, and when you need both.</description>
      <content:encoded>&lt;p&gt;Telegram gives developers two tools: bots and Mini Apps. They&amp;rsquo;re different products that solve different problems. Picking the wrong one costs you weeks and budget.&lt;/p&gt;&#xA;&lt;p&gt;Here&amp;rsquo;s how to decide.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-a-telegram-bot-is&#34;&gt;What a Telegram Bot Is&lt;/h2&gt;&#xA;&lt;p&gt;A bot is a Telegram account controlled by your server. Users interact with it through a chat: they type commands, tap inline keyboard buttons, or reply to prompts. The bot reads the input, processes it, and responds with text, images, documents, or buttons.&lt;/p&gt;&#xA;&lt;p&gt;The entire interaction happens inside the chat interface. No custom UI, no navigation, no forms with multiple inputs. Every step in the flow is a message exchange.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Bots are the right choice for:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Notification systems — order updates, shipping tracking, alerts, reminders&lt;/li&gt;&#xA;&lt;li&gt;Support ticket routing — users describe their issue, bot creates a ticket in Zendesk or HubSpot&lt;/li&gt;&#xA;&lt;li&gt;Simple bookings — the bot asks questions one at a time and collects responses&lt;/li&gt;&#xA;&lt;li&gt;Internal tools — team members query a database, trigger a deployment, pull a report&lt;/li&gt;&#xA;&lt;li&gt;Broadcast messaging — send a message to a large subscriber list&lt;/li&gt;&#xA;&lt;li&gt;FAQ automation — answer common questions without human intervention&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;A well-built bot handles these cases cleanly, needs less scope than a Mini App, and reaches production sooner.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-a-telegram-mini-app-is&#34;&gt;What a Telegram Mini App Is&lt;/h2&gt;&#xA;&lt;p&gt;A Mini App is a web application that opens inside Telegram as a bottom sheet. You build it with standard web technology — React, Vue, or vanilla JavaScript — and it renders in Telegram&amp;rsquo;s embedded browser. Users interact with it like any mobile web app: tapping buttons, filling forms, scrolling through content, selecting options.&lt;/p&gt;&#xA;&lt;p&gt;The Mini App has access to Telegram&amp;rsquo;s WebApp SDK, which provides:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The user&amp;rsquo;s Telegram identity (verified, no registration form needed)&lt;/li&gt;&#xA;&lt;li&gt;Telegram Pay for card payments&lt;/li&gt;&#xA;&lt;li&gt;Telegram Stars for digital goods&lt;/li&gt;&#xA;&lt;li&gt;The ability to send data back to the bot and close the Mini App when done&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;strong&gt;Mini Apps are the right choice for:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;eCommerce storefronts — product catalog, cart, Telegram Pay checkout&lt;/li&gt;&#xA;&lt;li&gt;Service booking — date/time picker, service selection, payment&lt;/li&gt;&#xA;&lt;li&gt;Loyalty and rewards — points balances, reward catalog, tier status&lt;/li&gt;&#xA;&lt;li&gt;Multi-step forms — onboarding flows, applications, surveys with branching logic&lt;/li&gt;&#xA;&lt;li&gt;Dashboards — order history, account settings, analytics&lt;/li&gt;&#xA;&lt;li&gt;Any interface that benefits from a real UI rather than a chat flow&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Mini Apps take 4–14 weeks to build depending on complexity.&lt;/p&gt;&#xA;&lt;h2 id=&#34;side-by-side&#34;&gt;Side by Side&lt;/h2&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th&gt;&lt;/th&gt;&#xA;          &lt;th&gt;Telegram Bot&lt;/th&gt;&#xA;          &lt;th&gt;Telegram Mini App&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Interface&lt;/td&gt;&#xA;          &lt;td&gt;Chat messages + buttons&lt;/td&gt;&#xA;          &lt;td&gt;Full web UI&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Interaction model&lt;/td&gt;&#xA;          &lt;td&gt;Command/response&lt;/td&gt;&#xA;          &lt;td&gt;Tap, scroll, form&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;User input&lt;/td&gt;&#xA;          &lt;td&gt;One field at a time, via messages&lt;/td&gt;&#xA;          &lt;td&gt;Multiple fields, native form UX&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Payments&lt;/td&gt;&#xA;          &lt;td&gt;Telegram Pay (via invoice messages)&lt;/td&gt;&#xA;          &lt;td&gt;Telegram Pay + Stars (in-app)&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Development time&lt;/td&gt;&#xA;          &lt;td&gt;Shorter&lt;/td&gt;&#xA;          &lt;td&gt;4–14 weeks&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Cost&lt;/td&gt;&#xA;          &lt;td&gt;Telegram projects with us start at $30,000; the final number depends on scope&lt;/td&gt;&#xA;          &lt;td&gt;Telegram projects with us start at $30,000; the final number depends on scope&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Requires bot?&lt;/td&gt;&#xA;          &lt;td&gt;—&lt;/td&gt;&#xA;          &lt;td&gt;Yes (always launched from a bot)&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;h2 id=&#34;when-you-need-both&#34;&gt;When You Need Both&lt;/h2&gt;&#xA;&lt;p&gt;The most effective Telegram products combine both. The pattern:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Bot&lt;/strong&gt; — handles the messaging layer. Sends order confirmations, shipping updates, support replies, promotional broadcasts, and reminders. The bot is always present in the user&amp;rsquo;s chat.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Mini App&lt;/strong&gt; — handles the interface layer. Launched from a button inside the bot chat. Users browse, select, pay, and manage their account inside the Mini App. When they complete an action (placing an order, booking a slot), the Mini App sends a result to the bot, which confirms it in chat.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;This pattern gives you the best of both: the UI power of a Mini App and the messaging reach of a bot.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Examples where this works well:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;eCommerce: Mini App for the storefront, bot for order notifications&lt;/li&gt;&#xA;&lt;li&gt;Booking: Mini App for the calendar and form, bot for reminders and updates&lt;/li&gt;&#xA;&lt;li&gt;Support: Mini App for ticket submission with file attachments, bot for status updates&lt;/li&gt;&#xA;&lt;li&gt;Internal ops: Mini App for data entry, bot for alerts when thresholds are hit&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;the-decision-in-practice&#34;&gt;The Decision in Practice&lt;/h2&gt;&#xA;&lt;p&gt;Start with the question: &lt;strong&gt;what does the user need to do?&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;If the answer is receive information, answer yes/no questions, trigger a simple action, or get routed to a human — &lt;strong&gt;build a bot&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;If the answer is browse a catalog, fill a multi-field form, pay for something, see a dashboard, or navigate between sections — &lt;strong&gt;build a Mini App&lt;/strong&gt; (with a bot behind it for messaging).&lt;/p&gt;&#xA;&lt;p&gt;If you&amp;rsquo;re unsure, start with a bot. It&amp;rsquo;s faster and smaller in scope, so you validate sooner whether users want the product at all. If they do, you can add a Mini App in phase two.&lt;/p&gt;&#xA;&lt;p&gt;We build both. Telegram projects with us start at $30,000, and the final number depends on scope. If you know which you need, we give you a fixed-price quote after a 30-minute scoping call. If you&amp;rsquo;re not sure, we&amp;rsquo;ll tell you what we&amp;rsquo;d recommend and why.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://cimpleo.com/services/telegram-apps/&#34;&gt;Talk to our Telegram development team →&lt;/a&gt;&lt;/p&gt;&#xA;</content:encoded>
    </item>
    <item>
      <title>Node.js Backend: Architecture, NestJS Modules, DB</title>
      <link>https://cimpleo.com/blog/nodejs-backend-architecture/badge.svg</link>
      <pubDate>Wed, 17 Jun 2026 00:00:00 +0000</pubDate>
      <guid isPermaLink="true">https://cimpleo.com/blog/nodejs-backend-architecture/badge.svg</guid>
      <description>Node.js backend structure with NestJS: module boundaries, database patterns, API layout and deployment config.</description>
      <content:encoded>&lt;p&gt;Most Node.js backends start as Express apps with a flat folder structure. A &lt;code&gt;routes/&lt;/code&gt; folder, a &lt;code&gt;controllers/&lt;/code&gt; folder, maybe a &lt;code&gt;models/&lt;/code&gt; folder. That works until the codebase has 20+ routes and 3+ developers. The patterns below don&amp;rsquo;t require a rewrite — they&amp;rsquo;re the structure to start with.&lt;/p&gt;&#xA;&lt;h2 id=&#34;module-organisation-with-nestjs&#34;&gt;Module organisation with NestJS&lt;/h2&gt;&#xA;&lt;p&gt;Express leaves structure entirely to the team. NestJS enforces module boundaries through its dependency injection system, which makes those boundaries visible and enforceable in code review.&lt;/p&gt;&#xA;&lt;p&gt;The mistake most teams make is organising by layer: &lt;code&gt;/src/controllers/&lt;/code&gt;, &lt;code&gt;/src/services/&lt;/code&gt;, &lt;code&gt;/src/repositories/&lt;/code&gt;. You end up navigating between three folders to understand one feature. Organise by domain instead:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;src/&#xA;  orders/&#xA;    orders.module.ts&#xA;    orders.controller.ts&#xA;    orders.service.ts&#xA;    orders.repository.ts&#xA;    dto/&#xA;      create-order.dto.ts&#xA;      order-response.dto.ts&#xA;    entities/&#xA;      order.entity.ts&#xA;  products/&#xA;    ...&#xA;  users/&#xA;    ...&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Each layer has one job:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Controller&lt;/strong&gt; — HTTP boundary only. Parse the request, validate input with class-validator DTOs, format the response. No business logic.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Service&lt;/strong&gt; — Business logic. No SQL queries, no direct HTTP calls to other services.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Repository&lt;/strong&gt; — Database queries. Returns domain objects, not raw query results.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;DTO&lt;/strong&gt; — Validated shapes for incoming requests and outgoing responses. Use &lt;code&gt;class-validator&lt;/code&gt; decorators on every field.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;A &lt;code&gt;NestJS&lt;/code&gt; module exports only what other modules need. If &lt;code&gt;OrdersModule&lt;/code&gt; needs to look up product prices, it imports &lt;code&gt;ProductsModule&lt;/code&gt; and injects &lt;code&gt;ProductsService&lt;/code&gt; — not &lt;code&gt;ProductsRepository&lt;/code&gt;. That boundary keeps the database layer internal. Need TypeScript and NestJS engineers? &lt;a href=&#34;https://cimpleo.com/hire/typescript/&#34;&gt;Hire them here&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;For Swagger documentation within this structure, see &lt;a href=&#34;https://cimpleo.com/blog/nestjs-modules--swagger-api-documentation-best-practices/&#34;&gt;NestJS Modules + Swagger: API Documentation Best Practices&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;database-patterns&#34;&gt;Database patterns&lt;/h2&gt;&#xA;&lt;p&gt;For schema design and tuning help, see our &lt;a href=&#34;https://cimpleo.com/services/db/&#34;&gt;database services&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;TypeORM vs Prisma in 2026&lt;/strong&gt;: Prisma has better type safety and migration tooling — the generated client types match your schema exactly. TypeORM gives more control over query construction and has a longer track record with NestJS. Either works; pick Prisma for greenfield projects, TypeORM if the team already knows it.&lt;/p&gt;&#xA;&lt;p&gt;Keep the repository pattern strict: never import &lt;code&gt;EntityManager&lt;/code&gt; or &lt;code&gt;DataSource&lt;/code&gt; directly into a service. Create a typed repository class:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#000;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-typescript&#34; data-lang=&#34;typescript&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;@Injectable&lt;/span&gt;()&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;export&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;class&lt;/span&gt; OrderRepository {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#f00&#34;&gt;constructor&lt;/span&gt;(&lt;span style=&#34;color:#f00&#34;&gt;@InjectRepository&lt;/span&gt;(Order) &lt;span style=&#34;color:#f00&#34;&gt;private&lt;/span&gt; repo: &lt;span style=&#34;color:#ee82ee&#34;&gt;Repository&lt;/span&gt;&amp;lt;Order&amp;gt;) {}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  findByUser(userId: &lt;span style=&#34;color:#ee82ee&#34;&gt;string&lt;/span&gt;): Promise&amp;lt;Order[]&amp;gt; {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;this&lt;/span&gt;.repo.find({ where: { userId } });&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  findWithItems(orderId: &lt;span style=&#34;color:#ee82ee&#34;&gt;string&lt;/span&gt;): Promise&amp;lt;Order | null&amp;gt; {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;this&lt;/span&gt;.repo.findOne({&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      where: { id: &lt;span style=&#34;color:#ee82ee&#34;&gt;orderId&lt;/span&gt; },&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      relations: [&lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#39;items&amp;#39;&lt;/span&gt;, &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#39;items.product&amp;#39;&lt;/span&gt;],&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    });&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The service calls &lt;code&gt;this.orderRepository.findByUser(userId)&lt;/code&gt; — it never writes SQL. When you switch from TypeORM to Prisma, you rewrite the repository class, not the service.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Database per service&lt;/strong&gt; only makes sense with genuine microservices. A shared PostgreSQL database for a monolith is fine — and avoids distributed transaction complexity.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Connection pooling&lt;/strong&gt;: run PgBouncer in front of PostgreSQL for APIs handling more than a few hundred requests per second. Node.js opens many short-lived connections; PgBouncer pools them at the database level.&lt;/p&gt;&#xA;&lt;h2 id=&#34;api-design&#34;&gt;API design&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;REST vs GraphQL&lt;/strong&gt;: REST for resource-based APIs where clients know what they need. GraphQL when multiple front-ends (web, mobile, third-party integrations) need different subsets of the same data.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Versioning&lt;/strong&gt;: prefix every route with &lt;code&gt;/api/v1/&lt;/code&gt; from day one. Changing that prefix once clients depend on it is painful. NestJS makes this a one-line config: &lt;code&gt;app.setGlobalPrefix(&#39;api/v1&#39;)&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Error format&lt;/strong&gt;: NestJS returns &lt;code&gt;{ statusCode, message, error }&lt;/code&gt; by default from &lt;code&gt;HttpException&lt;/code&gt;. Keep that shape for all errors — including business logic errors thrown as &lt;code&gt;BadRequestException&lt;/code&gt; or &lt;code&gt;UnprocessableEntityException&lt;/code&gt;. Clients parse one error format, not three.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Authentication&lt;/strong&gt;: JWT for stateless APIs. Session cookies for web apps with server-side rendering. Don&amp;rsquo;t mix the two in the same application — pick one and apply it everywhere.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Rate limiting&lt;/strong&gt;: &lt;code&gt;@nestjs/throttler&lt;/code&gt; with default in-memory storage for single-instance deployments. For multiple instances behind a load balancer, back it with Redis so rate limits apply per-user across all instances, not per-instance.&lt;/p&gt;&#xA;&lt;h2 id=&#34;scalability-without-microservices&#34;&gt;Scalability without microservices&lt;/h2&gt;&#xA;&lt;p&gt;A stateless Node.js process plus shared Redis scales horizontally. Add instances behind a load balancer; sessions and cache live in Redis, not in process memory. This gets most applications to thousands of concurrent users without touching the code architecture.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Background jobs&lt;/strong&gt;: use BullMQ with Redis for anything that doesn&amp;rsquo;t need to complete within the HTTP response window — sending emails, generating reports, calling third-party webhooks, processing uploads. The HTTP handler enqueues the job and returns immediately; a separate worker process handles it. BullMQ gives you retries, delay, priority, and job visibility out of the box.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Caching&lt;/strong&gt;: add a Redis cache at the repository layer for read-heavy endpoints. Product catalog, user profiles, and configuration data are good candidates — data that changes infrequently but is queried on every request. Cache with a TTL that matches how stale the data can be (60 seconds for product prices; 24 hours for static configuration).&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Event-driven coupling inside the monolith&lt;/strong&gt;: NestJS &lt;code&gt;EventEmitter2&lt;/code&gt; lets services react to domain events without direct dependencies. &lt;code&gt;OrdersService&lt;/code&gt; emits &lt;code&gt;OrderCreated&lt;/code&gt;; &lt;code&gt;NotificationsService&lt;/code&gt;, &lt;code&gt;InventoryService&lt;/code&gt;, and &lt;code&gt;WebhooksService&lt;/code&gt; each subscribe independently. Adding a new subscriber doesn&amp;rsquo;t touch &lt;code&gt;OrdersService&lt;/code&gt;. This pattern gives you the loose coupling of a message broker without the operational overhead.&lt;/p&gt;&#xA;&lt;h2 id=&#34;deployment&#34;&gt;Deployment&lt;/h2&gt;&#xA;&lt;p&gt;We plan these setups as part of &lt;a href=&#34;https://cimpleo.com/services/cloud-architecture/&#34;&gt;cloud architecture&lt;/a&gt; work and run them with &lt;a href=&#34;https://cimpleo.com/hire/devops/&#34;&gt;DevOps engineers&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Docker&lt;/strong&gt;: multi-stage Dockerfile (see our &lt;a href=&#34;https://cimpleo.com/services/docker/&#34;&gt;Docker services&lt;/a&gt;). Build stage installs all dependencies and compiles TypeScript. Production stage copies the compiled output and runs &lt;code&gt;npm install --production&lt;/code&gt;. The production image stays under 200 MB and has no compiler or devDependencies.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Configuration&lt;/strong&gt;: never hardcode config values. Use &lt;code&gt;@nestjs/config&lt;/code&gt; with &lt;code&gt;.env&lt;/code&gt; files and validate every variable at startup with a Joi schema. If &lt;code&gt;DATABASE_URL&lt;/code&gt; is missing, the process exits with a clear error before serving any requests.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Health checks&lt;/strong&gt;: expose a &lt;code&gt;/health&lt;/code&gt; endpoint that checks database connectivity and Redis connectivity. Your load balancer probes this before sending traffic to a new instance. A pod that can&amp;rsquo;t reach the database never receives production traffic.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Logging&lt;/strong&gt;: structured JSON with Pino (faster than Winston, same API surface). Every log line is a JSON object with &lt;code&gt;level&lt;/code&gt;, &lt;code&gt;timestamp&lt;/code&gt;, &lt;code&gt;requestId&lt;/code&gt;, and &lt;code&gt;message&lt;/code&gt;. Log aggregators (Datadog, Grafana Loki) parse these automatically — no custom parsing rules needed.&lt;/p&gt;&#xA;&lt;p&gt;Need a senior Node.js team to design or review your backend architecture? CimpleO&amp;rsquo;s &lt;a href=&#34;https://cimpleo.com/services/fullstack-develop/&#34;&gt;full-stack development team&lt;/a&gt; builds NestJS backends from schema design to production deployment. &lt;a href=&#34;mailto:hello@cimpleo.com&#34;&gt;Tell us what you&amp;rsquo;re building&lt;/a&gt;.&lt;/p&gt;&#xA;</content:encoded>
    </item>
    <item>
      <title>How to Build a Telegram Bot with Python (2026 Guide)</title>
      <link>https://cimpleo.com/blog/how-to-build-telegram-bot/badge.svg</link>
      <pubDate>Mon, 15 Jun 2026 00:00:00 +0000</pubDate>
      <guid isPermaLink="true">https://cimpleo.com/blog/how-to-build-telegram-bot/badge.svg</guid>
      <description>Step-by-step: create a Telegram bot with BotFather, handle commands in Python with python-telegram-bot v20, set up webhooks, and deploy to a VPS. Complete working code included.</description>
      <content:encoded>&lt;p&gt;By the end of this tutorial you&amp;rsquo;ll have a working Telegram bot that responds to &lt;code&gt;/start&lt;/code&gt; and &lt;code&gt;/help&lt;/code&gt;, echoes messages back to the user, displays an inline keyboard, and runs on a VPS via webhook. All code is tested against python-telegram-bot 20.7 and the Telegram Bot API as of mid-2026.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-youll-build&#34;&gt;What You&amp;rsquo;ll Build&lt;/h2&gt;&#xA;&lt;p&gt;A bot that handles &lt;code&gt;/start&lt;/code&gt;, &lt;code&gt;/help&lt;/code&gt;, and free-text echo — plus an inline keyboard with a callback handler. The same code runs in polling mode on your laptop for development, and switches to webhook mode for production.&lt;/p&gt;&#xA;&lt;h2 id=&#34;prerequisites&#34;&gt;Prerequisites&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Python 3.10 or later&lt;/li&gt;&#xA;&lt;li&gt;A Telegram account with access to @BotFather&lt;/li&gt;&#xA;&lt;li&gt;Basic Python knowledge (functions, async/await)&lt;/li&gt;&#xA;&lt;li&gt;A Linux VPS for the webhook steps (Hetzner Cloud CX11, $4/month, is sufficient)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;step-1-create-the-bot-with-botfather&#34;&gt;Step 1: Create the Bot with BotFather&lt;/h2&gt;&#xA;&lt;p&gt;Open Telegram and start a chat with &lt;a href=&#34;https://t.me/botfather&#34;&gt;@BotFather&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Send &lt;code&gt;/newbot&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Enter a display name — e.g. &lt;code&gt;My First Bot&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Enter a username ending in &lt;code&gt;bot&lt;/code&gt; — e.g. &lt;code&gt;myfirst_demo_bot&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;BotFather replies with a token: &lt;code&gt;7123456789:AAHdqTcvCH1vGWJxfSeofSoK31HTXv9NMTU&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Store this token as an environment variable, not in source code:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#000;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;export &lt;span style=&#34;color:#eedd82&#34;&gt;TELEGRAM_TOKEN&lt;/span&gt;=&lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;7123456789:AAHdqTcvCH1vGWJxfSeofSoK31HTXv9NMTU&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Anyone with this token controls the bot. Treat it like an API key.&lt;/p&gt;&#xA;&lt;h2 id=&#34;step-2-install-python-telegram-bot-v20&#34;&gt;Step 2: Install python-telegram-bot v20&lt;/h2&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#000;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;pip install &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;python-telegram-bot==20.7&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Version 20 rewrote the library around Python&amp;rsquo;s &lt;code&gt;asyncio&lt;/code&gt;. The v13 patterns (&lt;code&gt;Updater&lt;/code&gt;, synchronous handlers) no longer work. Every handler is now an &lt;code&gt;async def&lt;/code&gt; function, and the entry point is &lt;code&gt;Application&lt;/code&gt; instead of &lt;code&gt;Updater&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;step-3-basic-bot-with-command-handlers&#34;&gt;Step 3: Basic Bot with Command Handlers&lt;/h2&gt;&#xA;&lt;p&gt;Create &lt;code&gt;bot.py&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#000;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-python&#34; data-lang=&#34;python&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;import&lt;/span&gt; os&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;import&lt;/span&gt; logging&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;from&lt;/span&gt; telegram &lt;span style=&#34;color:#f00&#34;&gt;import&lt;/span&gt; Update&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;from&lt;/span&gt; telegram.ext &lt;span style=&#34;color:#f00&#34;&gt;import&lt;/span&gt; (&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Application,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    CommandHandler,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    MessageHandler,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    filters,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ContextTypes,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;logging.basicConfig(level=logging.INFO)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;TOKEN = os.environ[&lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;TELEGRAM_TOKEN&amp;#34;&lt;/span&gt;]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;async&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;def&lt;/span&gt; &lt;span style=&#34;color:#ff0&#34;&gt;start&lt;/span&gt;(update: Update, context: ContextTypes.DEFAULT_TYPE) -&amp;gt; &lt;span style=&#34;color:#f00&#34;&gt;None&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;await&lt;/span&gt; update.message.reply_text(&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;Hello! I&amp;#39;m your bot. Send /help to see what I can do.&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    )&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;async&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;def&lt;/span&gt; &lt;span style=&#34;color:#ff0&#34;&gt;help_command&lt;/span&gt;(update: Update, context: ContextTypes.DEFAULT_TYPE) -&amp;gt; &lt;span style=&#34;color:#f00&#34;&gt;None&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;await&lt;/span&gt; update.message.reply_text(&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;/start — greeting&lt;/span&gt;&lt;span style=&#34;color:#87ceeb&#34;&gt;\n&lt;/span&gt;&lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;/help — this message&lt;/span&gt;&lt;span style=&#34;color:#87ceeb&#34;&gt;\n&lt;/span&gt;&lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;Any other text — I echo it back&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    )&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;async&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;def&lt;/span&gt; &lt;span style=&#34;color:#ff0&#34;&gt;echo&lt;/span&gt;(update: Update, context: ContextTypes.DEFAULT_TYPE) -&amp;gt; &lt;span style=&#34;color:#f00&#34;&gt;None&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;await&lt;/span&gt; update.message.reply_text(update.message.text)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;def&lt;/span&gt; &lt;span style=&#34;color:#ff0&#34;&gt;main&lt;/span&gt;() -&amp;gt; &lt;span style=&#34;color:#f00&#34;&gt;None&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    app = Application.builder().token(TOKEN).build()&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    app.add_handler(CommandHandler(&lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;start&amp;#34;&lt;/span&gt;, start))&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    app.add_handler(CommandHandler(&lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;help&amp;#34;&lt;/span&gt;, help_command))&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    app.add_handler(MessageHandler(filters.TEXT &amp;amp; ~filters.COMMAND, echo))&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    app.run_polling()&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;if&lt;/span&gt; &lt;span style=&#34;color:#eedd82&#34;&gt;__name__&lt;/span&gt; == &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;__main__&amp;#34;&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    main()&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Run it:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#000;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;python bot.py&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Open Telegram, find your bot by username, send &lt;code&gt;/start&lt;/code&gt;. You&amp;rsquo;ll see the greeting within a second. Press &lt;code&gt;Ctrl+C&lt;/code&gt; to stop.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;run_polling()&lt;/code&gt; is fine for development — no public URL needed. For production, polling burns CPU and adds 1–3 seconds of latency. Use webhooks instead (Step 5).&lt;/p&gt;&#xA;&lt;h2 id=&#34;step-4-inline-keyboard&#34;&gt;Step 4: Inline Keyboard&lt;/h2&gt;&#xA;&lt;p&gt;Inline keyboards attach buttons directly to a message. Each button carries a &lt;code&gt;callback_data&lt;/code&gt; string that Telegram sends back when the user taps it.&lt;/p&gt;&#xA;&lt;p&gt;Add this to &lt;code&gt;bot.py&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#000;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-python&#34; data-lang=&#34;python&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;from&lt;/span&gt; telegram &lt;span style=&#34;color:#f00&#34;&gt;import&lt;/span&gt; InlineKeyboardButton, InlineKeyboardMarkup&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;from&lt;/span&gt; telegram.ext &lt;span style=&#34;color:#f00&#34;&gt;import&lt;/span&gt; CallbackQueryHandler&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;async&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;def&lt;/span&gt; &lt;span style=&#34;color:#ff0&#34;&gt;menu&lt;/span&gt;(update: Update, context: ContextTypes.DEFAULT_TYPE) -&amp;gt; &lt;span style=&#34;color:#f00&#34;&gt;None&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    keyboard = [&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        [&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            InlineKeyboardButton(&lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;Option A&amp;#34;&lt;/span&gt;, callback_data=&lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;option_a&amp;#34;&lt;/span&gt;),&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            InlineKeyboardButton(&lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;Option B&amp;#34;&lt;/span&gt;, callback_data=&lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;option_b&amp;#34;&lt;/span&gt;),&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        ]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;await&lt;/span&gt; update.message.reply_text(&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;Pick one:&amp;#34;&lt;/span&gt;, reply_markup=InlineKeyboardMarkup(keyboard)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    )&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;async&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;def&lt;/span&gt; &lt;span style=&#34;color:#ff0&#34;&gt;handle_button&lt;/span&gt;(update: Update, context: ContextTypes.DEFAULT_TYPE) -&amp;gt; &lt;span style=&#34;color:#f00&#34;&gt;None&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    query = update.callback_query&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;await&lt;/span&gt; query.answer()  &lt;span style=&#34;color:#0f0&#34;&gt;# removes the loading spinner&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;await&lt;/span&gt; query.edit_message_text(&lt;span style=&#34;color:#87ceeb&#34;&gt;f&lt;/span&gt;&lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;You picked: &lt;/span&gt;&lt;span style=&#34;color:#87ceeb&#34;&gt;{&lt;/span&gt;query.data&lt;span style=&#34;color:#87ceeb&#34;&gt;}&lt;/span&gt;&lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Register both handlers in &lt;code&gt;main()&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#000;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-python&#34; data-lang=&#34;python&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;app.add_handler(CommandHandler(&lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;menu&amp;#34;&lt;/span&gt;, menu))&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;app.add_handler(CallbackQueryHandler(handle_button))&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Send &lt;code&gt;/menu&lt;/code&gt; to the bot — two buttons appear. Tapping either replaces the message text with your selection.&lt;/p&gt;&#xA;&lt;h2 id=&#34;step-5-switch-to-webhooks-for-production&#34;&gt;Step 5: Switch to Webhooks for Production&lt;/h2&gt;&#xA;&lt;p&gt;Polling works by sending &lt;code&gt;getUpdates&lt;/code&gt; to Telegram every second. Webhooks flip the model: Telegram calls your server the moment a message arrives. This cuts latency to under 100 ms and drops CPU usage to near zero between messages.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Set the webhook manually:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#000;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;curl &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;https://api.telegram.org/bot&lt;/span&gt;&lt;span style=&#34;color:#87ceeb&#34;&gt;${&lt;/span&gt;&lt;span style=&#34;color:#eedd82&#34;&gt;TELEGRAM_TOKEN&lt;/span&gt;&lt;span style=&#34;color:#87ceeb&#34;&gt;}&lt;/span&gt;&lt;span style=&#34;color:#87ceeb&#34;&gt;/setWebhook?url=https://yourdomain.com/webhook&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Telegram confirms: &lt;code&gt;{&amp;quot;ok&amp;quot;:true,&amp;quot;result&amp;quot;:true}&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Or use python-telegram-bot&amp;rsquo;s built-in server:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Replace &lt;code&gt;app.run_polling()&lt;/code&gt; with:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#000;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-python&#34; data-lang=&#34;python&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;app.run_webhook(&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    listen=&lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;0.0.0.0&amp;#34;&lt;/span&gt;,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    port=&lt;span style=&#34;color:#f60&#34;&gt;8443&lt;/span&gt;,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    url_path=&lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;/webhook&amp;#34;&lt;/span&gt;,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    webhook_url=&lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;https://yourdomain.com/webhook&amp;#34;&lt;/span&gt;,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    cert=&lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;cert.pem&amp;#34;&lt;/span&gt;,       &lt;span style=&#34;color:#0f0&#34;&gt;# only needed for self-signed TLS&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Telegram requires HTTPS. Get a certificate from Let&amp;rsquo;s Encrypt (&lt;code&gt;certbot&lt;/code&gt;) or put Cloudflare&amp;rsquo;s proxy in front of your VPS. Telegram accepts ports 443, 80, 88, and 8443.&lt;/p&gt;&#xA;&lt;h2 id=&#34;step-6-deploy-to-a-vps&#34;&gt;Step 6: Deploy to a VPS&lt;/h2&gt;&#xA;&lt;p&gt;SSH into your server and set up the bot as a systemd service so it survives reboots and restarts on crash.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#000;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0f0&#34;&gt;# On your VPS&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;mkdir -p /opt/mybot&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;scp bot.py user@yourserver:/opt/mybot/&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;ssh user@yourserver &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;pip3 install &amp;#39;python-telegram-bot==20.7&amp;#39;&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Create &lt;code&gt;/etc/systemd/system/mybot.service&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#000;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-ini&#34; data-lang=&#34;ini&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;[Unit]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Description=&lt;span style=&#34;color:#87ceeb&#34;&gt;My Telegram Bot&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;After=&lt;span style=&#34;color:#87ceeb&#34;&gt;network.target&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;[Service]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;User=&lt;span style=&#34;color:#87ceeb&#34;&gt;ubuntu&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;WorkingDirectory=&lt;span style=&#34;color:#87ceeb&#34;&gt;/opt/mybot&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Environment=&lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;TELEGRAM_TOKEN=7123456789:AAHdqTcvCH1vGWJxfSeofSoK31HTXv9NMTU&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;ExecStart=&lt;span style=&#34;color:#87ceeb&#34;&gt;/usr/bin/python3 /opt/mybot/bot.py&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Restart=&lt;span style=&#34;color:#87ceeb&#34;&gt;on-failure&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;RestartSec=&lt;span style=&#34;color:#87ceeb&#34;&gt;5&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;[Install]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;WantedBy=&lt;span style=&#34;color:#87ceeb&#34;&gt;multi-user.target&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Enable and start:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#000;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo systemctl daemon-reload&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo systemctl enable mybot&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo systemctl start mybot&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo systemctl status mybot&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Verify the webhook is receiving traffic:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#000;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;curl &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;https://api.telegram.org/bot&lt;/span&gt;&lt;span style=&#34;color:#87ceeb&#34;&gt;${&lt;/span&gt;&lt;span style=&#34;color:#eedd82&#34;&gt;TELEGRAM_TOKEN&lt;/span&gt;&lt;span style=&#34;color:#87ceeb&#34;&gt;}&lt;/span&gt;&lt;span style=&#34;color:#87ceeb&#34;&gt;/getWebhookInfo&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The response shows &lt;code&gt;pending_update_count&lt;/code&gt; — it should drop to 0 once the bot processes queued messages.&lt;/p&gt;&#xA;&lt;h2 id=&#34;when-to-upgrade-to-a-mini-app&#34;&gt;When to Upgrade to a Mini App&lt;/h2&gt;&#xA;&lt;p&gt;Bots handle text commands well, but hit walls fast: no multi-step forms, no rich product listings, no native payment UI without workarounds.&lt;/p&gt;&#xA;&lt;p&gt;Telegram Mini Apps are web pages (HTML/CSS/JS or any framework) that open inside Telegram via a button tap. They get access to the Telegram user&amp;rsquo;s identity, Telegram Pay, and the Haptic Feedback API. The user never leaves the app.&lt;/p&gt;&#xA;&lt;p&gt;A typical path: launch with a bot for commands and notifications, then open a Mini App for anything requiring a UI — checkout flow, appointment booking, a dashboard. The bot stays as the entry point and notification channel; the Mini App handles complex interaction.&lt;/p&gt;&#xA;&lt;p&gt;Need a production Telegram bot or Mini App built for your business? CimpleO&amp;rsquo;s &lt;a href=&#34;https://cimpleo.com/services/telegram-apps/&#34;&gt;Telegram development team&lt;/a&gt; handles the full stack — bot logic, Mini App frontend, backend API, and Telegram Pay integration. &lt;a href=&#34;mailto:hello@cimpleo.com&#34;&gt;Tell us what you&amp;rsquo;re building&lt;/a&gt;.&lt;/p&gt;&#xA;</content:encoded>
    </item>
    <item>
      <title>WooCommerce vs Custom eCommerce: When to Switch</title>
      <link>https://cimpleo.com/blog/woocommerce-vs-custom-ecommerce/badge.svg</link>
      <pubDate>Thu, 11 Jun 2026 00:00:00 +0000</pubDate>
      <guid isPermaLink="true">https://cimpleo.com/blog/woocommerce-vs-custom-ecommerce/badge.svg</guid>
      <description>WooCommerce works until it doesn&#39;t. Signs you&#39;ve hit the ceiling, what custom eCommerce solves, migration cost, and how to decide without over-engineering.</description>
      <content:encoded>&lt;p&gt;WooCommerce powers 26% of the top million eCommerce sites. That&amp;rsquo;s not a coincidence — it&amp;rsquo;s a capable platform with a massive ecosystem, good hosting support, and a shallow learning curve. The question isn&amp;rsquo;t whether WooCommerce is good. The question is whether it fits your store at its current scale and complexity. There are specific signals that tell you the answer is no, and ignoring them costs more than a migration.&lt;/p&gt;&#xA;&lt;h2 id=&#34;when-woocommerce-works-fine&#34;&gt;When WooCommerce works fine&lt;/h2&gt;&#xA;&lt;p&gt;Most stores don&amp;rsquo;t need a custom platform. WooCommerce handles the following scenarios well:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Under 5,000 SKUs&lt;/strong&gt; — WordPress&amp;rsquo;s post-based product storage scales without issues at this volume&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Under 200 daily orders&lt;/strong&gt; — database load stays manageable; no need for custom order processing pipelines&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Standard checkout flows&lt;/strong&gt; — single currency, no complex B2B pricing tiers, no multi-warehouse routing&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;A small PHP-comfortable team&lt;/strong&gt; — WooCommerce has 15 years of documentation and a developer pool that&amp;rsquo;s easy to hire from&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;A platform budget under $40K&lt;/strong&gt; — at that budget, a custom build is out of reach, and a tuned WooCommerce store covers the same needs&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;At this scale, a well-configured WooCommerce store — FastCGI or full-page caching, Redis object cache, HPOS (High-Performance Order Storage) enabled, and a lean plugin set — handles most workloads without drama. See &lt;a href=&#34;https://cimpleo.com/blog/advanced-woocommerce-performance-optimization/&#34;&gt;WooCommerce Performance Optimization Guide&lt;/a&gt; for specifics on what that configuration looks like.&lt;/p&gt;&#xA;&lt;h2 id=&#34;signs-youve-hit-the-ceiling&#34;&gt;Signs you&amp;rsquo;ve hit the ceiling&lt;/h2&gt;&#xA;&lt;p&gt;These are the friction points that indicate WooCommerce is the constraint, not your implementation of it:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Query timeouts under load&lt;/strong&gt;: product listing pages exceed 3 seconds during flash sales, even with page caching, because complex WP_Query calls with custom meta filtering don&amp;rsquo;t cache well&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Checkout errors that correlate with plugin count&lt;/strong&gt;: inconsistent cart state, tax calculation failures, or shipping rate mismatches that only appear with 10+ active plugins and no clean reproduction path&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Custom pricing logic that took weeks to build&lt;/strong&gt;: if a developer spent 3 weeks fighting WooCommerce hooks and filters to implement tiered B2B pricing — and it still breaks on edge cases — that&amp;rsquo;s a platform fit problem&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Inventory sync lag you can&amp;rsquo;t close&lt;/strong&gt;: WooCommerce ↔ ERP sync running every 15 minutes means you sell oversold stock during high-demand windows; the platform&amp;rsquo;s data model isn&amp;rsquo;t built for real-time inventory&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Reporting that requires Excel&lt;/strong&gt;: if &amp;ldquo;what did we sell by region last quarter, broken down by product line&amp;rdquo; means exporting CSVs and stitching them together, your data is trapped in a structure that wasn&amp;rsquo;t designed for analysis&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Every new feature breaks two others&lt;/strong&gt;: plugin interdependencies mean no change is safe without full regression testing — and regression testing a WooCommerce store is expensive because the surface area is large and poorly typed&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Any one of these is manageable. All of them together means your engineering team is spending most of its time on the platform, not the product.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-custom-ecommerce-actually-means&#34;&gt;What custom eCommerce actually means&lt;/h2&gt;&#xA;&lt;p&gt;A custom eCommerce platform isn&amp;rsquo;t a framework choice — it&amp;rsquo;s a system built around your specific data model and workflows, from the ground up.&lt;/p&gt;&#xA;&lt;p&gt;What that changes in practice:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Checkout flow&lt;/strong&gt;: instead of extending WooCommerce&amp;rsquo;s cart model to handle configurable products, bundles, or subscriptions, the checkout is built for exactly those product types from the start. No hooks, no overrides, no edge cases from plugin interactions.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Inventory model&lt;/strong&gt;: warehouse-aware inventory that maps to how your fulfilment actually works, not WordPress&amp;rsquo;s single-quantity-per-product-post approach. Multi-location stock, reservation logic, and real-time sync with 3PL systems become first-class features rather than patches.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Admin panel&lt;/strong&gt;: an interface that shows what your operations team actually needs — pick rates by warehouse, return rates by SKU, regional revenue — rather than WooCommerce&amp;rsquo;s generic order list that requires plugins to add basic columns.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;No per-transaction fees&lt;/strong&gt;: WooCommerce extensions often charge 1–2% per transaction or monthly fees that compound at scale. A custom platform&amp;rsquo;s payment integration has no intermediary taking a cut beyond the gateway itself.&lt;/p&gt;&#xA;&lt;p&gt;The trade-off is real: higher upfront cost ($40,000–$150,000 depending on integration scope; enterprise or headless builds start around $100,000) and you own the maintenance. There&amp;rsquo;s no plugin ecosystem to lean on.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-decision-framework&#34;&gt;The decision framework&lt;/h2&gt;&#xA;&lt;p&gt;Three questions cut through most of this:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;1. Can optimisation fix it?&lt;/strong&gt;&#xA;If the symptoms are slow load times, plugin conflicts, or checkout errors — those are often configuration problems. A performance audit costs $3,500–$5,000, credited toward the build. It produces specific findings: which queries are slow, which plugins conflict, what caching configuration is missing. Optimisation is always cheaper than migration if it works.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;2. Is the pain in the platform or the implementation?&lt;/strong&gt;&#xA;A poorly set up WooCommerce store looks the same as a store that&amp;rsquo;s hit WooCommerce&amp;rsquo;s limits. Before concluding the platform is the problem, confirm the implementation is solid: HPOS enabled, unnecessary plugins removed, custom meta fields indexed, object caching running. If it&amp;rsquo;s still broken after that, it&amp;rsquo;s the platform.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;3. What does staying cost per month?&lt;/strong&gt;&#xA;Add up developer time fighting the platform (bugs, plugin updates, performance regression), revenue lost during outages, and any per-transaction fees from plugins. If that total exceeds $8,000/month, migration math usually works within 18–24 months on a build at the upper end of the range ($100,000–$150,000).&lt;/p&gt;&#xA;&lt;h2 id=&#34;migration-path&#34;&gt;Migration path&lt;/h2&gt;&#xA;&lt;p&gt;A migration doesn&amp;rsquo;t require a hard cutover. The standard approach:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Phase 1&lt;/strong&gt; (6–12 weeks): build the new platform alongside WooCommerce — products, checkout, order management, payment gateways, admin panel&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Phase 2&lt;/strong&gt;: migrate data — product catalog, customer accounts, order history — with validation checks on both sides&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Phase 3&lt;/strong&gt;: DNS cutover with a 48-hour rollback plan; WooCommerce stays live and writable until the new platform is verified under production load&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;URL preservation&lt;/strong&gt;: all customer-facing URLs redirect to their new equivalents, protecting search rankings and any existing backlinks&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;The store never goes dark. Customers see no interruption.&lt;/p&gt;&#xA;&lt;p&gt;Not sure whether to optimise or migrate? CimpleO runs &lt;a href=&#34;https://cimpleo.com/services/woocommerce/&#34;&gt;WooCommerce performance audits&lt;/a&gt; that give you a clear answer — specific findings and cost estimates for both paths. The audit costs $3,500–$5,000, credited toward the build. We also build &lt;a href=&#34;https://cimpleo.com/services/ecommerce/&#34;&gt;custom eCommerce platforms&lt;/a&gt; when the data says migration is right. &lt;a href=&#34;mailto:hello@cimpleo.com&#34;&gt;Tell us your situation&lt;/a&gt;.&lt;/p&gt;&#xA;</content:encoded>
    </item>
    <item>
      <title>STM32 Firmware Development: From Prototype to Production</title>
      <link>https://cimpleo.com/blog/stm32-firmware-development/badge.svg</link>
      <pubDate>Tue, 09 Jun 2026 00:00:00 +0000</pubDate>
      <guid isPermaLink="true">https://cimpleo.com/blog/stm32-firmware-development/badge.svg</guid>
      <description>STM32 firmware development guide: CubeIDE setup, GPIO and UART, FreeRTOS basics, low-power sleep modes, and OTA updates. Covers the path from eval board to production PCB.</description>
      <content:encoded>&lt;p&gt;This guide is for developers moving from Arduino to STM32, and for engineers starting firmware for an IoT product that needs to ship.&lt;/p&gt;&#xA;&lt;h2 id=&#34;why-stm32&#34;&gt;Why STM32&lt;/h2&gt;&#xA;&lt;p&gt;Arduino abstracts away the hardware. That works until you need to configure a specific UART baud rate, run two peripherals on the same SPI bus, or squeeze a device into a 2μA sleep current. STM32 gives you direct peripheral control — UART, SPI, I2C, CAN, ADC — all configurable at the register level through HAL or bare CMSIS.&lt;/p&gt;&#xA;&lt;p&gt;Key reasons engineers choose STM32:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;FreeRTOS integration&lt;/strong&gt; ships inside STM32CubeIDE. No third-party port needed.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Ultra-low-power variants&lt;/strong&gt;: STM32L4 hits 2μA in Stop 2 mode. That number determines whether a battery lasts two years or two weeks.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Production track record&lt;/strong&gt;: STM32 runs in medical monitors, industrial controllers, and automotive ECUs. Silicon supply, long-term part availability, and vendor documentation are reliable.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Single toolchain&lt;/strong&gt;: STM32CubeMX configures your pins and clock tree, generates initialization code, and hands it to CubeIDE — you write application logic, not boilerplate.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;step-1-tools-and-first-project&#34;&gt;Step 1: Tools and First Project&lt;/h2&gt;&#xA;&lt;p&gt;Download &lt;strong&gt;STM32CubeIDE&lt;/strong&gt; from st.com — it is free and bundles the GCC ARM toolchain, ST-Link drivers, and a debug perspective. No license key.&lt;/p&gt;&#xA;&lt;p&gt;For the eval board, start with the &lt;strong&gt;Nucleo-L476RG&lt;/strong&gt;. It has a built-in ST-Link debugger, Arduino-compatible headers for breadboarding, and an STM32L4 — the same family you would use in a real IoT product.&lt;/p&gt;&#xA;&lt;p&gt;Open CubeMX inside CubeIDE:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Select your Nucleo board. CubeMX pre-configures the ST-Link UART and onboard LED.&lt;/li&gt;&#xA;&lt;li&gt;Set &lt;strong&gt;PA5&lt;/strong&gt; to GPIO Output (that is the green LED on L476RG).&lt;/li&gt;&#xA;&lt;li&gt;Enable &lt;strong&gt;USART2&lt;/strong&gt; in Asynchronous mode at 115200 baud — it routes to the ST-Link virtual COM port, so you get a serial monitor without a USB-UART adapter.&lt;/li&gt;&#xA;&lt;li&gt;Click &lt;strong&gt;Generate Code&lt;/strong&gt;. CubeMX writes &lt;code&gt;main.c&lt;/code&gt;, peripheral init files, and a Makefile.&lt;/li&gt;&#xA;&lt;li&gt;Build and flash with the Run button. The first flash takes under 10 seconds over SWD.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;step-2-gpio-and-uart-basics&#34;&gt;Step 2: GPIO and UART Basics&lt;/h2&gt;&#xA;&lt;p&gt;The generated &lt;code&gt;main.c&lt;/code&gt; has a &lt;code&gt;while(1)&lt;/code&gt; loop waiting for your code. Three calls cover 90% of basic IO:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#000;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-c&#34; data-lang=&#34;c&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0f0&#34;&gt;/* Blink the LED */&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ff0&#34;&gt;HAL_GPIO_TogglePin&lt;/span&gt;(GPIOA, GPIO_PIN_5);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ff0&#34;&gt;HAL_Delay&lt;/span&gt;(&lt;span style=&#34;color:#f60&#34;&gt;500&lt;/span&gt;);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0f0&#34;&gt;/* Send a debug string over UART */&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ee82ee&#34;&gt;uint8_t&lt;/span&gt; msg[] = &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;Hello&lt;/span&gt;&lt;span style=&#34;color:#87ceeb&#34;&gt;\r\n&lt;/span&gt;&lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ff0&#34;&gt;HAL_UART_Transmit&lt;/span&gt;(&amp;amp;huart2, msg, &lt;span style=&#34;color:#f00&#34;&gt;sizeof&lt;/span&gt;(msg) - &lt;span style=&#34;color:#f60&#34;&gt;1&lt;/span&gt;, HAL_MAX_DELAY);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0f0&#34;&gt;/* Read a button state */&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;GPIO_PinState state = &lt;span style=&#34;color:#ff0&#34;&gt;HAL_GPIO_ReadPin&lt;/span&gt;(GPIOC, GPIO_PIN_13);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;if&lt;/span&gt; (state == GPIO_PIN_RESET) {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#0f0&#34;&gt;/* button pressed — PC13 is active low on Nucleo */&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;code&gt;HAL_MAX_DELAY&lt;/code&gt; blocks until transmission completes. For production code, use DMA-based transmit — &lt;code&gt;HAL_UART_Transmit_DMA()&lt;/code&gt; — so the CPU does not stall during a long UART frame.&lt;/p&gt;&#xA;&lt;h2 id=&#34;step-3-adding-a-real-sensor&#34;&gt;Step 3: Adding a Real Sensor&lt;/h2&gt;&#xA;&lt;p&gt;Most IoT sensors talk over UART, I2C, or SPI, or output an analog voltage that you read through the ADC. For an analog pH sensor, the electrode outputs 0–3V corresponding to pH 0–14. Wire the output to &lt;strong&gt;PA0&lt;/strong&gt; (ADC1 channel 5 on L476RG) and read it:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#000;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-c&#34; data-lang=&#34;c&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ff0&#34;&gt;HAL_ADC_Start&lt;/span&gt;(&amp;amp;hadc1);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ff0&#34;&gt;HAL_ADC_PollForConversion&lt;/span&gt;(&amp;amp;hadc1, HAL_MAX_DELAY);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ee82ee&#34;&gt;uint32_t&lt;/span&gt; raw = &lt;span style=&#34;color:#ff0&#34;&gt;HAL_ADC_GetValue&lt;/span&gt;(&amp;amp;hadc1);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ff0&#34;&gt;HAL_ADC_Stop&lt;/span&gt;(&amp;amp;hadc1);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0f0&#34;&gt;/* Map 12-bit ADC (0–4095) to pH 0–14 */&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ee82ee&#34;&gt;float&lt;/span&gt; voltage = raw * &lt;span style=&#34;color:#f60&#34;&gt;3.3f&lt;/span&gt; / &lt;span style=&#34;color:#f60&#34;&gt;4095.0f&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ee82ee&#34;&gt;float&lt;/span&gt; ph = voltage * (&lt;span style=&#34;color:#f60&#34;&gt;14.0f&lt;/span&gt; / &lt;span style=&#34;color:#f60&#34;&gt;3.3f&lt;/span&gt;);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Calibration matters more than the formula. Take readings in pH 4.0 and pH 7.0 buffer solutions, record the raw ADC values, then fit a two-point linear correction. A ±0.1 pH accuracy is achievable with a stable reference voltage and proper shielding on the analog input trace.&lt;/p&gt;&#xA;&lt;h2 id=&#34;step-4-low-power-sleep-modes&#34;&gt;Step 4: Low-Power Sleep Modes&lt;/h2&gt;&#xA;&lt;p&gt;A device drawing 10mA from a 2000mAh cell lasts 8 days. At 2μA in sleep with 10ms wake bursts every 60 seconds, the same cell lasts 2+ years. That difference is the STM32 power mode stack.&lt;/p&gt;&#xA;&lt;p&gt;STM32L4 has four modes:&lt;/p&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th&gt;Mode&lt;/th&gt;&#xA;          &lt;th&gt;Current&lt;/th&gt;&#xA;          &lt;th&gt;Wake sources&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Run&lt;/td&gt;&#xA;          &lt;td&gt;10–30mA&lt;/td&gt;&#xA;          &lt;td&gt;—&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Sleep&lt;/td&gt;&#xA;          &lt;td&gt;1–5mA&lt;/td&gt;&#xA;          &lt;td&gt;Any interrupt&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Stop 2&lt;/td&gt;&#xA;          &lt;td&gt;2μA&lt;/td&gt;&#xA;          &lt;td&gt;RTC, EXTI, LPUART&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Standby&lt;/td&gt;&#xA;          &lt;td&gt;0.3μA&lt;/td&gt;&#xA;          &lt;td&gt;RTC alarm, WKUP pin&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;p&gt;Stop 2 is the working mode for most IoT firmware. The CPU halts, RAM retains state, and the RTC keeps ticking. To enter it:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#000;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-c&#34; data-lang=&#34;c&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0f0&#34;&gt;/* Suspend SysTick to prevent immediate wake */&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ff0&#34;&gt;HAL_SuspendTick&lt;/span&gt;();&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0f0&#34;&gt;/* Enter Stop 2 — WFI waits for interrupt */&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ff0&#34;&gt;HAL_PWREx_EnterSTOP2Mode&lt;/span&gt;(PWR_STOPENTRY_WFI);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0f0&#34;&gt;/* Execution resumes here after wake */&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ff0&#34;&gt;HAL_ResumeTick&lt;/span&gt;();&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0f0&#34;&gt;/* Reconfigure clocks — Stop 2 resets to MSI */&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ff0&#34;&gt;SystemClock_Config&lt;/span&gt;();&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;A common wake source is an accelerometer interrupt. The ADXL345 has a programmable activity threshold — it pulls an EXTI line when motion exceeds the threshold. The STM32 sleeps at 2μA, the accelerometer runs at 23μA waiting for motion, and the system wakes only when needed. This is the same pattern in our &lt;a href=&#34;https://cimpleo.com/projects/iot-gat/&#34;&gt;GPS asset tracker&lt;/a&gt; which reaches a 2.2-year battery life on 3× AA cells.&lt;/p&gt;&#xA;&lt;h2 id=&#34;step-5-from-prototype-to-production-pcb&#34;&gt;Step 5: From Prototype to Production PCB&lt;/h2&gt;&#xA;&lt;p&gt;The Nucleo board gets you to a working firmware. A production device needs a custom PCB.&lt;/p&gt;&#xA;&lt;p&gt;Key decisions when moving off the eval board:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;STM32 package&lt;/strong&gt;: LQFP-48 or LQFP-64 are hand-solderable and well-documented. QFN-32 shrinks board area but requires a reflow oven. Pick the package your contract manufacturer can handle.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Decoupling capacitors&lt;/strong&gt;: Place 100nF ceramic caps on every VDD pin, within 0.5mm of the pin. Miss this and you will chase noise on ADC readings for days.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Programming header&lt;/strong&gt;: Keep a 4-pin SWD header on every production board — SWDIO, SWDCLK, GND, 3.3V. A $10 Tag-Connect footprint eliminates the through-hole header cost in volume. Without SWD access, a firmware bug means desoldering the chip.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Boot mode&lt;/strong&gt;: BOOT0 pin low at reset boots from flash. Pull it low with a 10kΩ resistor. Leave a jumper footprint to pull it high for UART bootloader access during factory programming.&lt;/p&gt;&#xA;&lt;p&gt;For production flashing, two options:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;ST-Link gang programmer&lt;/strong&gt; via a bed-of-nails jig — fast, 5 seconds per board, works at volume.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;UART bootloader&lt;/strong&gt; using STM32 factory-resident bootloader — no external programmer needed, slower, acceptable for low volumes.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;need-firmware-built&#34;&gt;Need Firmware Built?&lt;/h2&gt;&#xA;&lt;p&gt;CimpleO&amp;rsquo;s &lt;a href=&#34;https://cimpleo.com/hire/embedded-c/&#34;&gt;embedded engineering team&lt;/a&gt; handles STM32 and ESP32 firmware, PCB design review, and cloud backend — from eval board to production-ready hardware. &lt;a href=&#34;mailto:hello@cimpleo.com&#34;&gt;Tell us about your project&lt;/a&gt;.&lt;/p&gt;&#xA;</content:encoded>
    </item>
    <item>
      <title>Custom Software Development Company in Singapore</title>
      <link>https://cimpleo.com/blog/software-development-company-singapore/badge.svg</link>
      <pubDate>Fri, 05 Jun 2026 00:00:00 +0000</pubDate>
      <guid isPermaLink="true">https://cimpleo.com/blog/software-development-company-singapore/badge.svg</guid>
      <description>CimpleO builds custom web apps, mobile platforms, and backend systems for clients in Singapore and across Southeast Asia. Senior engineers, structured delivery, English-first.</description>
      <content:encoded>&lt;p&gt;Singapore companies outsource software development when the project needs engineers who&amp;rsquo;ve done it before in their specific domain — not generalists learning on the job. The right partner combines senior engineers with structured delivery and clear English communication throughout.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-we-build&#34;&gt;What We Build&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;Fintech platforms.&lt;/strong&gt; Singapore is a regional fintech hub, and the projects reflect that: multi-currency payment systems, FX data feeds, MAS-adjacent compliance workflows, and institutional-grade data platforms. We&amp;rsquo;ve built financial data infrastructure used by asset managers and economic research teams globally. Multi-currency ledgers, real-time pricing APIs, and audit trails for regulated workflows are standard builds for us, not edge cases.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Aviation and logistics software.&lt;/strong&gt; Changi is one of the busiest aviation hubs in the world, and Singapore anchors Southeast Asia&amp;rsquo;s shipping and freight networks. We built trip support software for an aviation services company operating across the Asia-Pacific — flight ops coordination, crew scheduling, ground handling workflows. Logistics clients come to us for shipment tracking platforms, warehouse management systems, and carrier API integrations.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Data platforms and analytics.&lt;/strong&gt; We&amp;rsquo;ve built platforms in the class of CEIC — large-scale economic and financial databases with structured ingestion pipelines, user-facing query interfaces, and export tooling. If your product is data — collected, normalized, and served to analysts or enterprise clients — we know what that architecture looks like.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Mobile apps.&lt;/strong&gt; Consumer-facing apps for iOS and Android (React Native or Flutter), enterprise mobile tools for field teams, and hybrid apps where the same codebase runs across all surfaces. We handle the backend alongside the app — no handoff problems between frontend and API teams.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;IoT and connected device backends.&lt;/strong&gt; Device provisioning, MQTT broker setup, time-series data storage, real-time dashboards, and alerting systems. Singapore&amp;rsquo;s smart city infrastructure and industrial IoT adoption means we see this project type regularly from clients in manufacturing, facilities management, and environmental monitoring.&lt;/p&gt;&#xA;&lt;h2 id=&#34;who-hires-us&#34;&gt;Who Hires Us&lt;/h2&gt;&#xA;&lt;p&gt;Three patterns show up consistently in Singapore engagements.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Domain expertise over geographic proximity.&lt;/strong&gt; A fintech startup building a compliance workflow or a logistics company automating freight ops needs engineers who&amp;rsquo;ve touched similar systems before. Generalist agencies — wherever they are — can&amp;rsquo;t substitute for that. We&amp;rsquo;ve built aviation ops software, institutional financial data platforms, and industrial IoT systems. Clients who need that depth find us specifically for it.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Projects too large for boutique local shops, too specialized for outsourcing factories.&lt;/strong&gt; An $80,000–$200,000 (USD) custom platform is outside the wheelhouse of a small design-first agency but requires too much domain judgment for a staff-aug factory that follows a spec without questioning it. We scope, architect, build, and test — and push back when the spec has a problem.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Fixed-price phases in a high-cost environment.&lt;/strong&gt; Singapore&amp;rsquo;s operating costs make budget overruns painful. We work in fixed-price phases: each phase has a defined scope, a delivery date, and a price agreed before work starts. No hourly billing surprises. If scope changes mid-phase, we flag it and requote before proceeding.&lt;/p&gt;&#xA;&lt;h2 id=&#34;how-a-project-runs&#34;&gt;How a Project Runs&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;Discovery (1–2 weeks).&lt;/strong&gt; We map your requirements, data flows, and integration points. Output: a technical architecture proposal and a fixed-price quote for the MVP phase. No code yet — this phase exists so both sides agree on what we&amp;rsquo;re building before money moves.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;MVP (8–14 weeks).&lt;/strong&gt; Two-week sprints. Staging environment from week 2. Working software in your hands by week 4 — not a demo, a functional build you can test. Sprint reviews every two weeks with direct access to the engineers doing the work.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Iteration.&lt;/strong&gt; Each subsequent phase is scoped and quoted the same way as the MVP. New features, integrations, or performance work come in as defined phases, not open-ended retainers.&lt;/p&gt;&#xA;&lt;p&gt;All communication in English. Weekly syncs via Google Meet or Zoom. Async updates in Slack or Telegram between sessions. Singapore&amp;rsquo;s GMT+8 and Eastern Europe&amp;rsquo;s working hours overlap for 5–6 hours daily — enough for same-day decisions without anyone working odd hours.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;mailto:hello@cimpleo.com&#34;&gt;Tell us about your project&lt;/a&gt; — we&amp;rsquo;ll scope it and send a fixed-price estimate within 48 hours.&lt;/p&gt;&#xA;&lt;p&gt;CimpleO&amp;rsquo;s &lt;a href=&#34;https://cimpleo.com/services/&#34;&gt;custom software development services&lt;/a&gt; cover web platforms, mobile apps, IoT systems, and data infrastructure for clients in Singapore and across Southeast Asia.&lt;/p&gt;&#xA;</content:encoded>
    </item>
    <item>
      <title>PH-4502C with Arduino: Pinout, Calibration, Code</title>
      <link>https://cimpleo.com/blog/arduino-ph-meter-using-ph-4502c/</link>
      <pubDate>Thu, 23 Apr 2020 18:00:00 +0000</pubDate>
      <guid isPermaLink="true">https://cimpleo.com/blog/arduino-ph-meter-using-ph-4502c/</guid>
      <description>PH-4502C pinout and datasheet specs, wiring to Arduino, two-point calibration and three sketches: basic reading, moving average, temperature compensation.</description>
      <content:encoded>&lt;p&gt;pH measures how acidic or alkaline a solution is on a 0–14 scale, with 7 as neutral. For Arduino projects — aquarium monitors, hydroponic controllers, soil testers, wastewater loggers — the PH-4502C is the most widely available analog pH interface module, costing $10–20 and connecting directly to any Arduino analog input.&lt;/p&gt;&#xA;&lt;p&gt;This guide covers: module specs, calibration, wiring, and three Arduino sketches of increasing sophistication.&lt;/p&gt;&#xA;&lt;p&gt;Need a pH sensor in a product, not on a breadboard? We &lt;a href=&#34;https://cimpleo.com/services/iot/&#34;&gt;build custom IoT devices&lt;/a&gt; from PCB to cloud.&lt;/p&gt;&#xA;&lt;picture&gt;&lt;source type=&#34;image/webp&#34; data-srcset=&#34;https://cimpleo.com/uploads/blog_blog_arduino-full_hu_52c19faa1502076.webp 450w, https://cimpleo.com/uploads/blog_blog_arduino-full_hu_4aa558692615be28.webp 1070w, https://cimpleo.com/uploads/blog_blog_arduino-full_hu_ded9975565d0e944.webp 1240w&#34; sizes=&#34;(max-width: 480px) 450px, 1070px&#34;&gt;&#xA;&lt;source type=&#34;image/jpeg&#34; data-srcset=&#34;https://cimpleo.com/uploads/blog_blog_arduino-full_hu_8773ccf4ce8ad093.jpg 450w, https://cimpleo.com/uploads/blog_blog_arduino-full_hu_6fc7fe387c42e3be.jpg 1070w, https://cimpleo.com/uploads/blog_blog_arduino-full.jpg 1240w&#34; sizes=&#34;(max-width: 480px) 450px, 1070px&#34;&gt;&#xA;&lt;img class=&#34;img-fluid lazyload&#34; alt=&#34;Arduino pH-meter with PH-4502C module&#34; width=&#34;1240&#34; height=&#34;500&#34; data-src=&#34;https://cimpleo.com/uploads/blog_blog_arduino-full.jpg&#34;&gt;&#xA;&lt;/picture&gt;&#xA;&lt;h2 id=&#34;ph-4502c-module-specifications&#34;&gt;PH-4502C Module Specifications&lt;/h2&gt;&#xA;&lt;p&gt;The PH-4502C accepts a BNC-connector glass electrode probe and outputs a 0–5V analog voltage proportional to measured pH.&lt;/p&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th&gt;Parameter&lt;/th&gt;&#xA;          &lt;th&gt;Value&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Supply voltage&lt;/td&gt;&#xA;          &lt;td&gt;5V DC&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Power consumption&lt;/td&gt;&#xA;          &lt;td&gt;≈0.5W&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Measuring range&lt;/td&gt;&#xA;          &lt;td&gt;pH 0–14&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Operating temperature&lt;/td&gt;&#xA;          &lt;td&gt;0–60°C&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Accuracy&lt;/td&gt;&#xA;          &lt;td&gt;±0.1 pH&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Response time&lt;/td&gt;&#xA;          &lt;td&gt;≤60 seconds&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Probe connector&lt;/td&gt;&#xA;          &lt;td&gt;BNC&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Analog output (PO)&lt;/td&gt;&#xA;          &lt;td&gt;0–5V&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Temperature output (TO)&lt;/td&gt;&#xA;          &lt;td&gt;Analog&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Board dimensions&lt;/td&gt;&#xA;          &lt;td&gt;43mm × 32mm&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;h2 id=&#34;ph-probe-sensor-pinout&#34;&gt;PH Probe Sensor Pinout&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;TO&lt;/strong&gt; — Temperature output (analog, for software compensation)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;DO&lt;/strong&gt; — Digital output: goes HIGH when pH crosses the threshold set by POT2&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;PO&lt;/strong&gt; — Analog pH voltage output → connect to Arduino A0&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Gnd&lt;/strong&gt; — Ground for pH probe&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Gnd&lt;/strong&gt; — Ground for board (connect both GND pins)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;VCC&lt;/strong&gt; — 5V DC power&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;POT 1&lt;/strong&gt; — Offset trimmer (nearest to BNC connector) — sets midpoint voltage for pH 7&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;POT 2&lt;/strong&gt; — Limit trimmer — sets the pH threshold for the DO digital trigger&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;how-ph-measurement-works&#34;&gt;How pH Measurement Works&lt;/h2&gt;&#xA;&lt;p&gt;The BNC glass electrode contains a thin glass membrane separating an internal reference solution from the measured sample. Hydrogen ions (H⁺) in the sample create a potential difference across the membrane proportional to ion concentration — the Nernst equation in practice.&lt;/p&gt;&#xA;&lt;p&gt;At pH 7 (neutral) the electrode potential is zero. At pH 4 (acidic) it goes positive; at pH 10 (alkaline) it goes negative. The PH-4502C module shifts and scales this signal so pH 7 corresponds to 2.5V at the Arduino analog input:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;pH = 7 + ((2.5 − V) / 0.18)&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The constant 0.18 is the expected voltage change per pH unit (electrode slope). Well-maintained glass electrodes produce 0.177–0.185 V/pH at 25°C.&lt;/p&gt;&#xA;&lt;h2 id=&#34;calibration&#34;&gt;Calibration&lt;/h2&gt;&#xA;&lt;p&gt;Calibration sets the offset so pH 7 reads exactly 2.5V at PO. This is a one-time setup — the module&amp;rsquo;s gain is fixed.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;What you need:&lt;/strong&gt; pH 7.0 buffer solution, multimeter, small Phillips screwdriver.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Disconnect the BNC probe and &lt;strong&gt;short-circuit the BNC connector&lt;/strong&gt; (touch centre pin to shield with a wire).&lt;/li&gt;&#xA;&lt;li&gt;Power the circuit (Arduino 5V → VCC, both GNDs connected).&lt;/li&gt;&#xA;&lt;li&gt;Measure voltage at the &lt;strong&gt;PO pin&lt;/strong&gt; with a multimeter.&lt;/li&gt;&#xA;&lt;li&gt;Adjust &lt;strong&gt;POT 1&lt;/strong&gt; (trimmer nearest to the BNC connector) until PO reads &lt;strong&gt;2.500V&lt;/strong&gt; exactly.&lt;/li&gt;&#xA;&lt;li&gt;Reconnect the probe. Rinse with distilled water, immerse in pH 7.0 buffer solution.&lt;/li&gt;&#xA;&lt;li&gt;Serial Monitor should now show values between 6.8 and 7.2. Fine-tune POT 1 in small increments if needed.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;strong&gt;Tip:&lt;/strong&gt; Always rinse with distilled water between measurements and buffer solutions. Never wipe the glass bulb — the glass membrane scratches easily and degrades quickly.&lt;/p&gt;&#xA;&lt;h2 id=&#34;wiring-diagram&#34;&gt;Wiring Diagram&lt;/h2&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;PH-4502C PO  → Arduino A0&#xA;PH-4502C GND → Arduino GND  (connect both GND pins)&#xA;PH-4502C VCC → Arduino 5V&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;sketch-1-basic-ph-reading&#34;&gt;Sketch 1: Basic pH Reading&lt;/h2&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#000;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-arduino&#34; data-lang=&#34;arduino&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e5e5e5&#34;&gt;#include&lt;/span&gt; &lt;span style=&#34;color:#e5e5e5&#34;&gt;&amp;lt;Arduino.h&amp;gt;&lt;/span&gt;&lt;span style=&#34;color:#e5e5e5&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ee82ee&#34;&gt;int&lt;/span&gt; pHSense = A0;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ee82ee&#34;&gt;int&lt;/span&gt; samples = &lt;span style=&#34;color:#f60&#34;&gt;10&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ee82ee&#34;&gt;float&lt;/span&gt; adc_resolution = &lt;span style=&#34;color:#f60&#34;&gt;1024.0&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ee82ee&#34;&gt;void&lt;/span&gt; &lt;span style=&#34;color:#ff0&#34;&gt;setup&lt;/span&gt;() {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Serial.&lt;span style=&#34;color:#ff0&#34;&gt;begin&lt;/span&gt;(&lt;span style=&#34;color:#f60&#34;&gt;9600&lt;/span&gt;);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#ff0&#34;&gt;delay&lt;/span&gt;(&lt;span style=&#34;color:#f60&#34;&gt;100&lt;/span&gt;);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Serial.&lt;span style=&#34;color:#ff0&#34;&gt;println&lt;/span&gt;(&lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;CimpleO pH Sense&amp;#34;&lt;/span&gt;);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ee82ee&#34;&gt;float&lt;/span&gt; &lt;span style=&#34;color:#ff0&#34;&gt;ph&lt;/span&gt;(&lt;span style=&#34;color:#ee82ee&#34;&gt;float&lt;/span&gt; voltage) {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#f60&#34;&gt;7&lt;/span&gt; + ((&lt;span style=&#34;color:#f60&#34;&gt;2.5&lt;/span&gt; - voltage) / &lt;span style=&#34;color:#f60&#34;&gt;0.18&lt;/span&gt;);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ee82ee&#34;&gt;void&lt;/span&gt; &lt;span style=&#34;color:#ff0&#34;&gt;loop&lt;/span&gt;() {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#ee82ee&#34;&gt;int&lt;/span&gt; measurings = &lt;span style=&#34;color:#f60&#34;&gt;0&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;for&lt;/span&gt; (&lt;span style=&#34;color:#ee82ee&#34;&gt;int&lt;/span&gt; i = &lt;span style=&#34;color:#f60&#34;&gt;0&lt;/span&gt;; i &amp;lt; samples; i++) {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        measurings += &lt;span style=&#34;color:#ff0&#34;&gt;analogRead&lt;/span&gt;(pHSense);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#ff0&#34;&gt;delay&lt;/span&gt;(&lt;span style=&#34;color:#f60&#34;&gt;10&lt;/span&gt;);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#ee82ee&#34;&gt;float&lt;/span&gt; voltage = &lt;span style=&#34;color:#f60&#34;&gt;5.0&lt;/span&gt; / adc_resolution * measurings / samples;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Serial.&lt;span style=&#34;color:#ff0&#34;&gt;print&lt;/span&gt;(&lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;pH= &amp;#34;&lt;/span&gt;);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Serial.&lt;span style=&#34;color:#ff0&#34;&gt;println&lt;/span&gt;(ph(voltage));&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#ff0&#34;&gt;delay&lt;/span&gt;(&lt;span style=&#34;color:#f60&#34;&gt;3000&lt;/span&gt;);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;sketch-2-moving-average-filter&#34;&gt;Sketch 2: Moving Average Filter&lt;/h2&gt;&#xA;&lt;p&gt;Glass electrode output carries electrical noise. Collecting 30 samples over 3 seconds and discarding the highest and lowest 5 before averaging significantly improves stability:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#000;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-arduino&#34; data-lang=&#34;arduino&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e5e5e5&#34;&gt;#include&lt;/span&gt; &lt;span style=&#34;color:#e5e5e5&#34;&gt;&amp;lt;Arduino.h&amp;gt;&lt;/span&gt;&lt;span style=&#34;color:#e5e5e5&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e5e5e5&#34;&gt;#define SAMPLES 30&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e5e5e5&#34;&gt;#define TRIM    5&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ee82ee&#34;&gt;int&lt;/span&gt; pHSense = A0;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ee82ee&#34;&gt;float&lt;/span&gt; &lt;span style=&#34;color:#ff0&#34;&gt;ph&lt;/span&gt;(&lt;span style=&#34;color:#ee82ee&#34;&gt;float&lt;/span&gt; voltage) {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#f60&#34;&gt;7.0&lt;/span&gt; + ((&lt;span style=&#34;color:#f60&#34;&gt;2.5&lt;/span&gt; - voltage) / &lt;span style=&#34;color:#f60&#34;&gt;0.18&lt;/span&gt;);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ee82ee&#34;&gt;float&lt;/span&gt; &lt;span style=&#34;color:#ff0&#34;&gt;readPH&lt;/span&gt;() {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#ee82ee&#34;&gt;int&lt;/span&gt; buf[SAMPLES];&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;for&lt;/span&gt; (&lt;span style=&#34;color:#ee82ee&#34;&gt;int&lt;/span&gt; i = &lt;span style=&#34;color:#f60&#34;&gt;0&lt;/span&gt;; i &amp;lt; SAMPLES; i++) {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        buf[i] = &lt;span style=&#34;color:#ff0&#34;&gt;analogRead&lt;/span&gt;(pHSense);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#ff0&#34;&gt;delay&lt;/span&gt;(&lt;span style=&#34;color:#f60&#34;&gt;30&lt;/span&gt;);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#0f0&#34;&gt;// sort ascending&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;for&lt;/span&gt; (&lt;span style=&#34;color:#ee82ee&#34;&gt;int&lt;/span&gt; i = &lt;span style=&#34;color:#f60&#34;&gt;0&lt;/span&gt;; i &amp;lt; SAMPLES - &lt;span style=&#34;color:#f60&#34;&gt;1&lt;/span&gt;; i++)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f00&#34;&gt;for&lt;/span&gt; (&lt;span style=&#34;color:#ee82ee&#34;&gt;int&lt;/span&gt; j = i + &lt;span style=&#34;color:#f60&#34;&gt;1&lt;/span&gt;; j &amp;lt; SAMPLES; j++)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#f00&#34;&gt;if&lt;/span&gt; (buf[i] &amp;gt; buf[j]) { &lt;span style=&#34;color:#ee82ee&#34;&gt;int&lt;/span&gt; t = buf[i]; buf[i] = buf[j]; buf[j] = t; }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#0f0&#34;&gt;// average middle values&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#ee82ee&#34;&gt;long&lt;/span&gt; sum = &lt;span style=&#34;color:#f60&#34;&gt;0&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;for&lt;/span&gt; (&lt;span style=&#34;color:#ee82ee&#34;&gt;int&lt;/span&gt; i = TRIM; i &amp;lt; SAMPLES - TRIM; i++) sum += buf[i];&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#ee82ee&#34;&gt;float&lt;/span&gt; voltage = &lt;span style=&#34;color:#f60&#34;&gt;5.0&lt;/span&gt; / &lt;span style=&#34;color:#f60&#34;&gt;1024.0&lt;/span&gt; * sum / (SAMPLES - &lt;span style=&#34;color:#f60&#34;&gt;2&lt;/span&gt; * TRIM);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;return&lt;/span&gt; ph(voltage);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ee82ee&#34;&gt;void&lt;/span&gt; &lt;span style=&#34;color:#ff0&#34;&gt;setup&lt;/span&gt;() { Serial.&lt;span style=&#34;color:#ff0&#34;&gt;begin&lt;/span&gt;(&lt;span style=&#34;color:#f60&#34;&gt;9600&lt;/span&gt;); }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ee82ee&#34;&gt;void&lt;/span&gt; &lt;span style=&#34;color:#ff0&#34;&gt;loop&lt;/span&gt;() {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Serial.&lt;span style=&#34;color:#ff0&#34;&gt;print&lt;/span&gt;(&lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;pH= &amp;#34;&lt;/span&gt;);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Serial.&lt;span style=&#34;color:#ff0&#34;&gt;println&lt;/span&gt;(readPH(), &lt;span style=&#34;color:#f60&#34;&gt;2&lt;/span&gt;);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#ff0&#34;&gt;delay&lt;/span&gt;(&lt;span style=&#34;color:#f60&#34;&gt;1000&lt;/span&gt;);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;sketch-3-temperature-compensation&#34;&gt;Sketch 3: Temperature Compensation&lt;/h2&gt;&#xA;&lt;p&gt;pH readings shift approximately 0.003 units per °C away from neutral. At pH 4 in a 35°C environment, uncompensated error reaches ±0.03 pH. Connect the &lt;strong&gt;TO pin&lt;/strong&gt; to Arduino A1 for temperature-corrected readings:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#000;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-arduino&#34; data-lang=&#34;arduino&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e5e5e5&#34;&gt;#include&lt;/span&gt; &lt;span style=&#34;color:#e5e5e5&#34;&gt;&amp;lt;Arduino.h&amp;gt;&lt;/span&gt;&lt;span style=&#34;color:#e5e5e5&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ee82ee&#34;&gt;int&lt;/span&gt; pHSense  = A0;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ee82ee&#34;&gt;int&lt;/span&gt; tempSense = A1;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ee82ee&#34;&gt;float&lt;/span&gt; &lt;span style=&#34;color:#ff0&#34;&gt;ph&lt;/span&gt;(&lt;span style=&#34;color:#ee82ee&#34;&gt;float&lt;/span&gt; voltage) {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#f60&#34;&gt;7.0&lt;/span&gt; + ((&lt;span style=&#34;color:#f60&#34;&gt;2.5&lt;/span&gt; - voltage) / &lt;span style=&#34;color:#f60&#34;&gt;0.18&lt;/span&gt;);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ee82ee&#34;&gt;float&lt;/span&gt; &lt;span style=&#34;color:#ff0&#34;&gt;readTemperature&lt;/span&gt;() {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#ee82ee&#34;&gt;int&lt;/span&gt; raw = &lt;span style=&#34;color:#ff0&#34;&gt;analogRead&lt;/span&gt;(tempSense);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;return&lt;/span&gt; raw * &lt;span style=&#34;color:#f60&#34;&gt;5.0&lt;/span&gt; / &lt;span style=&#34;color:#f60&#34;&gt;1024.0&lt;/span&gt; * &lt;span style=&#34;color:#f60&#34;&gt;100.0&lt;/span&gt;; &lt;span style=&#34;color:#0f0&#34;&gt;// 10mV/°C linear sensor&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ee82ee&#34;&gt;void&lt;/span&gt; &lt;span style=&#34;color:#ff0&#34;&gt;loop&lt;/span&gt;() {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#ee82ee&#34;&gt;int&lt;/span&gt; raw = &lt;span style=&#34;color:#f60&#34;&gt;0&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;for&lt;/span&gt; (&lt;span style=&#34;color:#ee82ee&#34;&gt;int&lt;/span&gt; i = &lt;span style=&#34;color:#f60&#34;&gt;0&lt;/span&gt;; i &amp;lt; &lt;span style=&#34;color:#f60&#34;&gt;10&lt;/span&gt;; i++) { raw += &lt;span style=&#34;color:#ff0&#34;&gt;analogRead&lt;/span&gt;(pHSense); &lt;span style=&#34;color:#ff0&#34;&gt;delay&lt;/span&gt;(&lt;span style=&#34;color:#f60&#34;&gt;10&lt;/span&gt;); }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#ee82ee&#34;&gt;float&lt;/span&gt; voltage = &lt;span style=&#34;color:#f60&#34;&gt;5.0&lt;/span&gt; / &lt;span style=&#34;color:#f60&#34;&gt;1024.0&lt;/span&gt; * raw / &lt;span style=&#34;color:#f60&#34;&gt;10.0&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#ee82ee&#34;&gt;float&lt;/span&gt; rawPH   = ph(voltage);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#ee82ee&#34;&gt;float&lt;/span&gt; temp    = &lt;span style=&#34;color:#ff0&#34;&gt;readTemperature&lt;/span&gt;();&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#ee82ee&#34;&gt;float&lt;/span&gt; compPH  = rawPH + (temp - &lt;span style=&#34;color:#f60&#34;&gt;25.0&lt;/span&gt;) * &lt;span style=&#34;color:#f60&#34;&gt;0.03&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Serial.&lt;span style=&#34;color:#ff0&#34;&gt;print&lt;/span&gt;(&lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;Temp: &amp;#34;&lt;/span&gt;); Serial.&lt;span style=&#34;color:#ff0&#34;&gt;print&lt;/span&gt;(temp, &lt;span style=&#34;color:#f60&#34;&gt;1&lt;/span&gt;);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Serial.&lt;span style=&#34;color:#ff0&#34;&gt;print&lt;/span&gt;(&lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;°C  pH= &amp;#34;&lt;/span&gt;);  Serial.&lt;span style=&#34;color:#ff0&#34;&gt;println&lt;/span&gt;(compPH, &lt;span style=&#34;color:#f60&#34;&gt;2&lt;/span&gt;);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#ff0&#34;&gt;delay&lt;/span&gt;(&lt;span style=&#34;color:#f60&#34;&gt;3000&lt;/span&gt;);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;ph-4502c-vs-alternative-ph-modules&#34;&gt;PH-4502C vs Alternative pH Modules&lt;/h2&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th&gt;Module&lt;/th&gt;&#xA;          &lt;th&gt;Price&lt;/th&gt;&#xA;          &lt;th&gt;Interface&lt;/th&gt;&#xA;          &lt;th&gt;Temp. compensation&lt;/th&gt;&#xA;          &lt;th&gt;Accuracy&lt;/th&gt;&#xA;          &lt;th&gt;Best for&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;PH-4502C&lt;/td&gt;&#xA;          &lt;td&gt;$10–20&lt;/td&gt;&#xA;          &lt;td&gt;Analog 0–5V&lt;/td&gt;&#xA;          &lt;td&gt;Manual (TO pin)&lt;/td&gt;&#xA;          &lt;td&gt;±0.1 pH&lt;/td&gt;&#xA;          &lt;td&gt;Prototyping, hobby, monitoring&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;DFRobot Gravity pH&lt;/td&gt;&#xA;          &lt;td&gt;$30–50&lt;/td&gt;&#xA;          &lt;td&gt;Analog&lt;/td&gt;&#xA;          &lt;td&gt;Manual&lt;/td&gt;&#xA;          &lt;td&gt;±0.1 pH&lt;/td&gt;&#xA;          &lt;td&gt;Same principle, cleaner form factor&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Atlas Scientific EZO-pH&lt;/td&gt;&#xA;          &lt;td&gt;$140–160&lt;/td&gt;&#xA;          &lt;td&gt;I2C / UART&lt;/td&gt;&#xA;          &lt;td&gt;Built-in&lt;/td&gt;&#xA;          &lt;td&gt;±0.001 pH&lt;/td&gt;&#xA;          &lt;td&gt;Production devices, lab accuracy&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;SEN0161&lt;/td&gt;&#xA;          &lt;td&gt;$25–40&lt;/td&gt;&#xA;          &lt;td&gt;Analog&lt;/td&gt;&#xA;          &lt;td&gt;Manual&lt;/td&gt;&#xA;          &lt;td&gt;±0.1 pH&lt;/td&gt;&#xA;          &lt;td&gt;Alternative to PH-4502C&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;p&gt;For Arduino prototypes, the PH-4502C provides sufficient accuracy at minimal cost. When moving to a production device — especially where readings drive automated dosing or safety alerts — the Atlas Scientific EZO-pH&amp;rsquo;s precision and I2C interface justify the higher price.&lt;/p&gt;&#xA;&lt;p&gt;If you&amp;rsquo;re working with IoT hardware, you might also find our &lt;a href=&#34;https://cimpleo.com/blog/jrd-100-arduino-uhf-rfid-module-development/&#34;&gt;JRD-100 UHF RFID module guide&lt;/a&gt; useful, or learn how to &lt;a href=&#34;https://cimpleo.com/blog/kafka-in-iot-real-time-data-streaming/&#34;&gt;stream sensor data in real time with Kafka&lt;/a&gt;. For cellular connectivity in field-deployed sensors, see our &lt;a href=&#34;https://cimpleo.com/blog/introduction-to-the-a9g-development/&#34;&gt;A9G GSM/GPS module guide&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;need-a-device-like-this-built-for-you&#34;&gt;Need a device like this built for you?&lt;/h2&gt;&#xA;&lt;p&gt;We build custom hardware: PCB design, firmware, cloud backend and a dashboard or mobile app from one team. Our &lt;a href=&#34;https://cimpleo.com/services/iot/&#34;&gt;IoT development service&lt;/a&gt; covers the full path from a prototype on evaluation hardware to a connected product.&lt;/p&gt;&#xA;&lt;p&gt;Two projects close to this guide:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&#34;https://cimpleo.com/projects/hydroponix-portfolio/&#34;&gt;Hydroponix&lt;/a&gt;&lt;/strong&gt; is a modular hydroponic controller. STM32 modules on each bed read pH and TDS, run the irrigation pump and dose fertiliser. An ESP32 hub manages the grow room and serves a web interface. We moved the sensors to Modbus RS485 over twisted pair because I2C does not reach 100-200 m. It was an internal R&amp;amp;D project with no commercial deployment.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;a href=&#34;https://cimpleo.com/projects/flowid-portfolio/&#34;&gt;FlowID&lt;/a&gt;&lt;/strong&gt; is a smart water filter system. The ESP32 device sleeps deeply between reports, counts water flow with an external pulse counter and talks over BLE and MQTT to a NestJS backend, React Native apps and a web dashboard.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Tell us what the device measures and where it runs. &lt;a href=&#34;mailto:hello@cimpleo.com&#34;&gt;Get in touch&lt;/a&gt; and we will scope it.&lt;/p&gt;&#xA;&lt;p&gt;Building a connected device that needs to move beyond a prototype? CimpleO&amp;rsquo;s &lt;a href=&#34;https://cimpleo.com/services/iot/&#34;&gt;IoT engineering team&lt;/a&gt; covers the full stack — from firmware and PCB design to cloud backend and mobile dashboard. If you&amp;rsquo;re scaling pH monitoring across greenhouses, hydroponic farms, or field sensor networks, see our &lt;a href=&#34;https://cimpleo.com/industries/agriculture/&#34;&gt;agritech software development&lt;/a&gt; work. &lt;a href=&#34;mailto:hello@cimpleo.com&#34;&gt;Get in touch&lt;/a&gt; to discuss your project.&lt;/p&gt;&#xA;</content:encoded>
    </item>
    <item>
      <title>A9G Module: TTL Wiring, AT Commands, GPS and GSM Setup</title>
      <link>https://cimpleo.com/blog/introduction-to-the-a9g-development/</link>
      <pubDate>Tue, 08 Jun 2021 10:56:00 +0600</pubDate>
      <guid isPermaLink="true">https://cimpleo.com/blog/introduction-to-the-a9g-development/</guid>
      <description>A9G TTL wiring, AT commands for calls, SMS, GPS tracking and GPRS. Ai Thinker GSM/GPS module setup for cellular IoT prototypes.</description>
      <content:encoded>&lt;p&gt;IoT devices mainly use AVP, ESP and STM32 microcontrollers. To connect GSM or GPRS, you have to connect separated submodules, which greatly clutters up the final device.&#xA;Not everyone knows that there is such a module as A9G gps tracker. It has a compact SMD housing that combines GSM and GPRS modules. All that remains when working with it is to connect the antennas and power.&#xA;The module can be controlled using AT commands from another microcontroller or through its own SDK firmware. The A9G arduino module is developed by Ai Thinker, which is also a manufacturer of ESP microcontrollers.&lt;/p&gt;&#xA;&lt;p&gt;In this guide, I will try to briefly explain the first steps to work with the A9G with GSM, GPS, GPRS modules. I will install the necessary software and try to control it using AT commands.&lt;/p&gt;&#xA;&lt;picture&gt;&lt;source type=&#34;image/webp&#34; data-srcset=&#34;https://cimpleo.com/uploads/blog_a9g_large_hu_336806eb9eb2740c.webp 450w, https://cimpleo.com/uploads/blog_a9g_large_hu_bbdd124d50a80e60.webp 1070w, https://cimpleo.com/uploads/blog_a9g_large_hu_afb8db770239ed20.webp 1080w&#34; sizes=&#34;(max-width: 480px) 450px, 1070px&#34;&gt;&#xA;&lt;source type=&#34;image/jpeg&#34; data-srcset=&#34;https://cimpleo.com/uploads/blog_a9g_large_hu_8b5d660aebbcecf5.jpg 450w, https://cimpleo.com/uploads/blog_a9g_large_hu_1568ce5f1de50de4.jpg 1070w, https://cimpleo.com/uploads/blog_a9g_large.jpg 1080w&#34; sizes=&#34;(max-width: 480px) 450px, 1070px&#34;&gt;&#xA;&lt;img class=&#34;img-fluid lazyload&#34; alt=&#34;A9G Image&#34; width=&#34;1080&#34; height=&#34;507&#34; data-src=&#34;https://cimpleo.com/uploads/blog_a9g_large.jpg&#34;&gt;&#xA;&lt;/picture&gt;&#xA;&lt;p&gt;The photo shows that in my case GPS and GSM antennas are connected, and a SIM card is installed(on the backside).&lt;/p&gt;&#xA;&lt;h2 id=&#34;first-you-need&#34;&gt;First you need:&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;A9G module.&lt;/li&gt;&#xA;&lt;li&gt;GSM antenna.&lt;/li&gt;&#xA;&lt;li&gt;GPS antenna.&lt;/li&gt;&#xA;&lt;li&gt;SIM card.&lt;/li&gt;&#xA;&lt;li&gt;TTL converter.&lt;/li&gt;&#xA;&lt;li&gt;Windows or Linux PC.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;If all the components are present, download the program to control the module using AT commands:&#xA;&lt;a href=&#34;https://github.com/akarsh98/A9G-Supporting-material/raw/master/AiThinker_Serial_Tool_V1.2.3.zip&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Download&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;At the first steps of learning a new device, you need to try all of its functionality. The module comes with firmware that allows you to accept AT commands and process them.&#xA;We connect the module via a TTL converter (mine is based on the CH340G chip)&lt;/p&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th&gt;TTL&lt;/th&gt;&#xA;          &lt;th&gt;-&amp;gt;&lt;/th&gt;&#xA;          &lt;th&gt;A9G&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;RX&lt;/td&gt;&#xA;          &lt;td&gt;-&amp;gt;&lt;/td&gt;&#xA;          &lt;td&gt;TX&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;TX&lt;/td&gt;&#xA;          &lt;td&gt;-&amp;gt;&lt;/td&gt;&#xA;          &lt;td&gt;RX&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;5V&lt;/td&gt;&#xA;          &lt;td&gt;-&amp;gt;&lt;/td&gt;&#xA;          &lt;td&gt;VUSB&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;GND&lt;/td&gt;&#xA;          &lt;td&gt;-&amp;gt;&lt;/td&gt;&#xA;          &lt;td&gt;GND&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;p&gt;Make sure to connect everything correctly. In addition to the RX and TX connectors, the module has HST_RX and HST_TX connectors. They are intended for downloading firmware and further debugging.&lt;/p&gt;&#xA;&lt;p&gt;&lt;picture&gt;&lt;source type=&#34;image/webp&#34; data-srcset=&#34;https://cimpleo.com/uploads/blog_a9g_1_hu_724e0305e30fd89.webp 450w, https://cimpleo.com/uploads/blog_a9g_1_hu_a5340c21e6598a71.webp 1070w, https://cimpleo.com/uploads/blog_a9g_1_hu_51147082c936a37.webp 744w&#34; sizes=&#34;(max-width: 480px) 450px, 1070px&#34;&gt;&#xA;&lt;source type=&#34;image/png&#34; data-srcset=&#34;https://cimpleo.com/uploads/blog_a9g_1_hu_1a9669540c8b045d.png 450w, https://cimpleo.com/uploads/blog_a9g_1_hu_91d8c64ea8dc8e62.png 1070w, https://cimpleo.com/uploads/blog_a9g_1.png 744w&#34; sizes=&#34;(max-width: 480px) 450px, 1070px&#34;&gt;&#xA;&lt;img class=&#34;img-fluid lazyload&#34; alt=&#34;1&#34; width=&#34;744&#34; height=&#34;692&#34; data-src=&#34;https://cimpleo.com/uploads/blog_a9g_1.png&#34;&gt;&#xA;&lt;/picture&gt;&#xA;&lt;span class=&#34;signature&#34;&gt;Ai Thinker A9G Serial Tool V1.2.3.&lt;/span&gt;&lt;/p&gt;&#xA;&lt;p&gt;Run the program and open Serial port. Press the RESET button on the module itself and wait for the module to initialize.&lt;/p&gt;&#xA;&lt;p&gt;The program interface is intuitive, but I have marked each zone and described it&lt;/p&gt;&#xA;&lt;picture&gt;&lt;source type=&#34;image/webp&#34; data-srcset=&#34;https://cimpleo.com/uploads/blog_a9g_2_hu_d43664d19c87eb02.webp 450w, https://cimpleo.com/uploads/blog_a9g_2_hu_b0cd6325bcfda66c.webp 1070w, https://cimpleo.com/uploads/blog_a9g_2_hu_161045aa4364b9cd.webp 743w&#34; sizes=&#34;(max-width: 480px) 450px, 1070px&#34;&gt;&#xA;&lt;source type=&#34;image/png&#34; data-srcset=&#34;https://cimpleo.com/uploads/blog_a9g_2_hu_f954934db91c9795.png 450w, https://cimpleo.com/uploads/blog_a9g_2_hu_359e500ec45942ee.png 1070w, https://cimpleo.com/uploads/blog_a9g_2.png 743w&#34; sizes=&#34;(max-width: 480px) 450px, 1070px&#34;&gt;&#xA;&lt;img class=&#34;img-fluid lazyload&#34; alt=&#34;2&#34; width=&#34;743&#34; height=&#34;692&#34; data-src=&#34;https://cimpleo.com/uploads/blog_a9g_2.png&#34;&gt;&#xA;&lt;/picture&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The result of the command execution comes in a red frame.&lt;/li&gt;&#xA;&lt;li&gt;In green - a window for entering commands.&lt;/li&gt;&#xA;&lt;li&gt;In yellow - the history of commands is saved.&lt;/li&gt;&#xA;&lt;li&gt;In blue - a set of shortcut commands.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;The module works out of the box. It is possible to receive AT commands and process them without reflashing. Do not forget to connect GSM and/or GPS antennas for the first test.&lt;/p&gt;&#xA;&lt;h2 id=&#34;gsm-commands&#34;&gt;GSM commands&lt;/h2&gt;&#xA;&lt;p&gt;The A9G module has GSM capabilities with the help of which it can be used to start a call, receive a call, and send an SMS as well when we dial the number whose SIM card is inserted within the A9G module a &amp;ldquo;RING&amp;rdquo; message will continuously appear on the monitor. The AT Commands which can be used for calling and sending SMS using the A9G are:&lt;/p&gt;&#xA;&lt;h3 id=&#34;call-commands&#34;&gt;Call Commands:&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;ATA: Used to Answer an Incoming Call. On sending this command &amp;ldquo;+CIEV: &amp;ldquo;CALL&amp;rdquo;,1 CONNECT&amp;rdquo;; the message is received.&lt;/li&gt;&#xA;&lt;li&gt;ATD: This Command is used to dial a number this command is sent as &amp;ldquo;AT+number to be dialed&amp;rdquo; and on sending this command we receive a message saying &amp;ldquo;ATD+number dialed OK +CIEV: &amp;ldquo;CALL&amp;rdquo;,1 +CIEV: &amp;ldquo;SOUNDER&amp;rdquo;,1 &amp;ldquo;.&lt;/li&gt;&#xA;&lt;li&gt;ATH: This command is used to disconnect a call. This command is sent as &amp;ldquo;ATH&amp;rdquo; and on sending this we receive a message &amp;ldquo;+CIEV: &amp;ldquo;CALL&amp;rdquo;,0 OK&amp;rdquo;.&lt;/li&gt;&#xA;&lt;li&gt;AT+SNFS=0: This command used to enable any earphones/headphones connected to the module. This command enables them.&lt;/li&gt;&#xA;&lt;li&gt;AT+SNFS=1: This command is used to enable Loudspeaker selection.&lt;/li&gt;&#xA;&lt;li&gt;AT+CHUP: This command causes the mobile terminal to hang up the current call.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;sms-commands&#34;&gt;SMS Commands:&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;AT+CMGF=1: This command is used to select the SMS message format. On sending his command we receive an OK. This is to read and write SMS messages as strings instead of hexadecimal characters.&lt;/li&gt;&#xA;&lt;li&gt;AT+CMGS: This command is used to send SMS to a given mobile number. The format for sending this command is &amp;ldquo;AT+CMGS=” mobile number”. On sending this command the monitor will show &amp;gt; You can now type the message text and send the message using the - key combination: TEST After some seconds the modem will respond with the message ID of the message, indicating that the message was sent correctly: &amp;ldquo;+CMGS: 62&amp;rdquo;. The message will arrive on the mobile phone shortly.&lt;/li&gt;&#xA;&lt;li&gt;AT+CMGL: This command is used to read SMS messages from preferred storage.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;As the A9G module comes with an inbuilt bootloader and hence it can be controlled using AT commands and can also be used to transmit commands as well.&lt;/p&gt;&#xA;&lt;h2 id=&#34;some-useful-at-commands-are&#34;&gt;Some useful AT commands are:&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;AT+GPS=1: This command is used to enable GPS. When this command is sent the GPS is turned On and the LED on the module for GPS starts blinking.&lt;/li&gt;&#xA;&lt;li&gt;AT+GPS=0: This command is used to turn OFF GPS. After sending this command GPS is turned OFF and the LED also stops blinking.&lt;/li&gt;&#xA;&lt;li&gt;AT+GPSRD=1: This command is used to start reading GPS data and display it on the monitor. The data returned by this command is in NMEA format which needs to be converted to get into a readable form.&lt;/li&gt;&#xA;&lt;li&gt;AT+GPSRD=0: This command is used to stop reading the GPS data.&lt;/li&gt;&#xA;&lt;li&gt;AT+LOCATION=1: This command is used to get location data through the LBS server. It displays the location information in the form of latitude and longitude.&lt;/li&gt;&#xA;&lt;li&gt;AT+GPSUPGRADE: Release GPS UART from A9’s CPU, then you can connect GPS UART directly to communicate with GPS.&lt;/li&gt;&#xA;&lt;li&gt;AT+CGPSPWR: This command is used for GPS Power Control. It is used to turn on or turn off the GPS Power supply.&lt;/li&gt;&#xA;&lt;li&gt;AT+CGPSRST: This command resets GPS in COLD start mode or autonomy mode. AT+CGPSRST=0 resets GPS in cold start mode and command AT+CGPSRST=1 resets GPS in autonomy mode.&lt;/li&gt;&#xA;&lt;li&gt;AT+CREG?: This command is used to check whether we are registered to the network or not. If it shows 1,1 as a response then this means that we are registered and can move ahead.&lt;/li&gt;&#xA;&lt;li&gt;AT+CGATT: This command is similar to the CREG command. If its response is 1 then we are connected to the network.&lt;/li&gt;&#xA;&lt;li&gt;AT+CIPSTATUS: This command is used to check whether the IP is connected or Not. If its response is &amp;ldquo;INITIAL&amp;rdquo; then it means that we are connected. If it shows something else then there is some problem.&lt;/li&gt;&#xA;&lt;li&gt;AT+CGDCONT=1: This command is used to connect to the Internet. In this command, we need to specify the APN and IP as well in the format given as AT+CGDCONT=1, &amp;ldquo;IP&amp;rdquo;, &amp;ldquo;www&amp;rdquo;.&lt;/li&gt;&#xA;&lt;li&gt;AT+HTTPGET: This command is used to send an HTTP get request to any server link. Its format is AT+HTTPGET=&amp;ldquo;server link&amp;rdquo;.&lt;/li&gt;&#xA;&lt;li&gt;AT+CIPMODE: This is used for selecting TCP/IP application mode. &amp;lsquo;0&amp;rsquo; is non-transparent mode and &amp;lsquo;1&amp;rsquo; is the transparent mode.&lt;/li&gt;&#xA;&lt;li&gt;AT+CIPACK: This command checks the state of data transmission. It will return the amount of data sent, data acknowledged by the server, and data not confirmed by the server.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Working with GSM/GPS modules like the A9G for a production IoT device? CimpleO&amp;rsquo;s &lt;a href=&#34;https://cimpleo.com/hire/embedded-c/&#34;&gt;embedded engineering team&lt;/a&gt; handles firmware development from prototype to production — including custom PCB design, power optimization, and cloud backend. See also our &lt;a href=&#34;https://cimpleo.com/services/iot/&#34;&gt;IoT development services&lt;/a&gt;. &lt;a href=&#34;mailto:hello@cimpleo.com&#34;&gt;Tell us about your project&lt;/a&gt;.&lt;/p&gt;&#xA;</content:encoded>
    </item>
    <item>
      <title>NestJS Best Practices: Module Design Rules</title>
      <link>https://cimpleo.com/blog/nestjs-module-design-best-practices/</link>
      <pubDate>Mon, 13 Jul 2020 18:00:00 +0000</pubDate>
      <guid isPermaLink="true">https://cimpleo.com/blog/nestjs-module-design-best-practices/</guid>
      <description>NestJS best practices: domain logic in low-level modules, HTTP/WebSocket/gRPC in high-level wrappers, no cross-module entity relations.</description>
      <content:encoded>&lt;p&gt;When developing modern applications it&amp;rsquo;s a common case that you need to reuse a class or module in another project, or in another service related to the current project, or add the ability to interact through other interfaces. For example, you have an HTTP API, but you also need WebSocket or gRPC. It&amp;rsquo;s the default case. I’d like to be able to easily and quickly expand the functionality based on the one already available.&lt;/p&gt;&#xA;&lt;picture&gt;&lt;source type=&#34;image/webp&#34; data-srcset=&#34;https://cimpleo.com/uploads/blog_blog_nestJs-no-node-full_hu_e48a0dd2fa5c3e61.webp 450w, https://cimpleo.com/uploads/blog_blog_nestJs-no-node-full_hu_e820a9e57d35941b.webp 1070w, https://cimpleo.com/uploads/blog_blog_nestJs-no-node-full_hu_961e18169e722efc.webp 1240w&#34; sizes=&#34;(max-width: 480px) 450px, 1070px&#34;&gt;&#xA;&lt;source type=&#34;image/png&#34; data-srcset=&#34;https://cimpleo.com/uploads/blog_blog_nestJs-no-node-full_hu_88188a85071538f6.png 450w, https://cimpleo.com/uploads/blog_blog_nestJs-no-node-full_hu_6120a5de28835096.png 1070w, https://cimpleo.com/uploads/blog_blog_nestJs-no-node-full.png 1240w&#34; sizes=&#34;(max-width: 480px) 450px, 1070px&#34;&gt;&#xA;&lt;img class=&#34;img-fluid lazyload&#34; alt=&#34;NestJS Flexible, reusable, scalable modules design&#34; width=&#34;1240&#34; height=&#34;500&#34; data-src=&#34;https://cimpleo.com/uploads/blog_blog_nestJs-no-node-full.png&#34;&gt;&#xA;&lt;/picture&gt;&#xA;&lt;p&gt;The task seems trivial - you get the necessary code that you’re going to reuse and make it dependent only on input parameters. This advice from books doesn’t work, because we have integration with other parts of the system and relationships of entities. In these conditions, the task no longer seems so simple.&lt;/p&gt;&#xA;&lt;h2 id=&#34;first-problem---entity-relation&#34;&gt;First problem - Entity relation.&lt;/h2&gt;&#xA;&lt;p&gt;Domain in our example is a bedroom with chairs, tables and beds.&lt;/p&gt;&#xA;&lt;p&gt;So the table schema looks like:&lt;/p&gt;&#xA;&lt;picture&gt;&lt;source type=&#34;image/webp&#34; data-srcset=&#34;https://cimpleo.com/uploads/blog_2020-07-17_image2_hu_94f76c7cb4a1de6d.webp 450w, https://cimpleo.com/uploads/blog_2020-07-17_image2_hu_acd3cf63ea77885c.webp 1070w, https://cimpleo.com/uploads/blog_2020-07-17_image2_hu_6634f6e616ae958.webp 588w&#34; sizes=&#34;(max-width: 480px) 450px, 1070px&#34;&gt;&#xA;&lt;source type=&#34;image/png&#34; data-srcset=&#34;https://cimpleo.com/uploads/blog_2020-07-17_image2_hu_b22deb566eced392.png 450w, https://cimpleo.com/uploads/blog_2020-07-17_image2_hu_48c021c3efc1668.png 1070w, https://cimpleo.com/uploads/blog_2020-07-17_image2.png 588w&#34; sizes=&#34;(max-width: 480px) 450px, 1070px&#34;&gt;&#xA;&lt;img class=&#34;img-fluid lazyload&#34; alt=&#34;NestJS Flexible, reusable, scalable modules design&#34; width=&#34;588&#34; height=&#34;318&#34; data-src=&#34;https://cimpleo.com/uploads/blog_2020-07-17_image2.png&#34;&gt;&#xA;&lt;/picture&gt;&#xA;&lt;p&gt;This is a reasonable data schema that developers would use. Entities of bedrooms have ‘ManyToOne’ relationships to bedrooms.&#xA;If we develop HTTP API after this data design we would have troubles with flexible, reusable, scalable.&lt;/p&gt;&#xA;&lt;p&gt;Sometimes it becomes necessary to split functionality between different microservices. And we just cannot provide this because for the microservice that is responsible for the chairs, you still have to take the part that is responsible for the bedrooms.&lt;/p&gt;&#xA;&lt;p&gt;Data design is important. Because in such a case we got absolutely monolithic architecture without scalability, flexibility and code reusability.&lt;/p&gt;&#xA;&lt;h2 id=&#34;second-problem---infrastructure&#34;&gt;Second problem - Infrastructure.&lt;/h2&gt;&#xA;&lt;p&gt;Protocols, databases, service integrations and any other infrastructure stuff has its own characteristics, which is impossible to abstract from. HTTP is HTTP, WebSocket is WebSocket. No “Network Communication Interface” for HTTP and WebSocket protocols. We write the code of the modules explicitly, not one module for all cases. In this case it’ll become a monolith that is hard to maintain, has many bugs and unexpected behaviour.&lt;/p&gt;&#xA;&lt;h2 id=&#34;solution&#34;&gt;Solution&lt;/h2&gt;&#xA;&lt;p&gt;All problems can be resolved and it’s possible to make a program flexible. It’s also possible to do reusable code without any edits.&lt;/p&gt;&#xA;&lt;h2 id=&#34;relations-problems-resolve&#34;&gt;Relations problems resolve&lt;/h2&gt;&#xA;&lt;p&gt;No relations - no relationship problems. We reject that data design. Relationship between module entities - is a wrong way.&#xA;Bedroom, Chair, Table, Bed is 4 different modules that have nothing that unites ( no any references ). Bedroom is an aggregate for chairs, tables, beds. Data schema has changed and looks like:&lt;/p&gt;&#xA;&lt;picture&gt;&lt;source type=&#34;image/webp&#34; data-srcset=&#34;https://cimpleo.com/uploads/blog_2020-07-17_image7_hu_e42fef435290676f.webp 450w, https://cimpleo.com/uploads/blog_2020-07-17_image7_hu_ae6fac779627dc30.webp 1070w, https://cimpleo.com/uploads/blog_2020-07-17_image7_hu_7c526c774c90ea6d.webp 617w&#34; sizes=&#34;(max-width: 480px) 450px, 1070px&#34;&gt;&#xA;&lt;source type=&#34;image/png&#34; data-srcset=&#34;https://cimpleo.com/uploads/blog_2020-07-17_image7_hu_41c5c2e0cbaa2eee.png 450w, https://cimpleo.com/uploads/blog_2020-07-17_image7_hu_41538767029e59e3.png 1070w, https://cimpleo.com/uploads/blog_2020-07-17_image7.png 617w&#34; sizes=&#34;(max-width: 480px) 450px, 1070px&#34;&gt;&#xA;&lt;img class=&#34;img-fluid lazyload&#34; alt=&#34;NestJS Flexible, reusable, scalable modules design&#34; width=&#34;617&#34; height=&#34;325&#34; data-src=&#34;https://cimpleo.com/uploads/blog_2020-07-17_image7.png&#34;&gt;&#xA;&lt;/picture&gt;&#xA;&lt;p&gt;In such a data schema we can move and separate the function of bottom components. We can even write it in another tech stack. The main thing is to provide a communication interface for the top component - Bedroom. So there will be the opportunity to get tables, chairs and beds in Bedroom.&lt;/p&gt;&#xA;&lt;h2 id=&#34;true-modularity&#34;&gt;True modularity&lt;/h2&gt;&#xA;&lt;p&gt;Modules are built according to the following principles.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Low level modules contain only business logic.&lt;/li&gt;&#xA;&lt;li&gt;High level modules (Http, Websocket, etc&amp;hellip;) are created as needed and provide external interfaces (http, ws, grpc) for low level modules.&lt;/li&gt;&#xA;&lt;li&gt;The module is only responsible for its domain and should not provide interfaces for inclusive modules. For example ‘Zoo’ module cannot provide any interface of child module ‘Dog’ to change name of entity&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Low level module contains business logic only and works with persistante storages ( databases ). Structure of such module looks like:&lt;/p&gt;&#xA;&lt;picture&gt;&lt;source type=&#34;image/webp&#34; data-srcset=&#34;https://cimpleo.com/uploads/blog_2020-07-17_image4_hu_aa8b3c062470fb23.webp 450w, https://cimpleo.com/uploads/blog_2020-07-17_image4_hu_84c317a5f44e5624.webp 1070w, https://cimpleo.com/uploads/blog_2020-07-17_image4_hu_a9c6ed29bf7a1aa2.webp 312w&#34; sizes=&#34;(max-width: 480px) 450px, 1070px&#34;&gt;&#xA;&lt;source type=&#34;image/png&#34; data-srcset=&#34;https://cimpleo.com/uploads/blog_2020-07-17_image4_hu_26bffabd9a799f4b.png 450w, https://cimpleo.com/uploads/blog_2020-07-17_image4_hu_c86791d185c62d90.png 1070w, https://cimpleo.com/uploads/blog_2020-07-17_image4.png 312w&#34; sizes=&#34;(max-width: 480px) 450px, 1070px&#34;&gt;&#xA;&lt;img class=&#34;img-fluid lazyload&#34; alt=&#34;NestJS Flexible, reusable, scalable modules design&#34; width=&#34;312&#34; height=&#34;211&#34; data-src=&#34;https://cimpleo.com/uploads/blog_2020-07-17_image4.png&#34;&gt;&#xA;&lt;/picture&gt;&#xA;&lt;p&gt;Low level module doesn’t contain Controller, Websocket Gateways, gRpcHandlers. This module contains only business logic in services which depends on input arguments only.&lt;/p&gt;&#xA;&lt;p&gt;Well, what happens if we need to provide a HTTP Api for this module? Low level module is complete. If you want to use it in HTTP just make a new Http module which uses a low level module and provide http controllers that works with methods of service in low level modules.&lt;/p&gt;&#xA;&lt;picture&gt;&lt;source type=&#34;image/webp&#34; data-srcset=&#34;https://cimpleo.com/uploads/blog_2020-07-17_image1_hu_a93cdeb94e110b9f.webp 450w, https://cimpleo.com/uploads/blog_2020-07-17_image1_hu_47b60fcd2e9fbbf2.webp 1070w, https://cimpleo.com/uploads/blog_2020-07-17_image1_hu_6362caebe1dfa46e.webp 338w&#34; sizes=&#34;(max-width: 480px) 450px, 1070px&#34;&gt;&#xA;&lt;source type=&#34;image/png&#34; data-srcset=&#34;https://cimpleo.com/uploads/blog_2020-07-17_image1_hu_22dc08cb964f52be.png 450w, https://cimpleo.com/uploads/blog_2020-07-17_image1_hu_de8fe37bbc35282a.png 1070w, https://cimpleo.com/uploads/blog_2020-07-17_image1.png 338w&#34; sizes=&#34;(max-width: 480px) 450px, 1070px&#34;&gt;&#xA;&lt;img class=&#34;img-fluid lazyload&#34; alt=&#34;NestJS Flexible, reusable, scalable modules design&#34; width=&#34;338&#34; height=&#34;206&#34; data-src=&#34;https://cimpleo.com/uploads/blog_2020-07-17_image1.png&#34;&gt;&#xA;&lt;/picture&gt;&#xA;&lt;p&gt;I removed the postfix &amp;ldquo;Module&amp;rdquo; on the diagram in &amp;ldquo;Chair&amp;rdquo;.&lt;/p&gt;&#xA;&lt;p&gt;&amp;ldquo;HttpChair&amp;rdquo; wrapped &amp;ldquo;Chair&amp;rdquo; and provided a controller.&lt;/p&gt;&#xA;&lt;p&gt;So we can describe each part of our application, and now architecture looks like:&lt;/p&gt;&#xA;&lt;picture&gt;&lt;source type=&#34;image/webp&#34; data-srcset=&#34;https://cimpleo.com/uploads/blog_2020-07-17_image6_hu_99c0007095b8104a.webp 450w, https://cimpleo.com/uploads/blog_2020-07-17_image6_hu_c29ddd436ffc59a1.webp 1070w, https://cimpleo.com/uploads/blog_2020-07-17_image6_hu_629d6c1ca5bda259.webp 477w&#34; sizes=&#34;(max-width: 480px) 450px, 1070px&#34;&gt;&#xA;&lt;source type=&#34;image/png&#34; data-srcset=&#34;https://cimpleo.com/uploads/blog_2020-07-17_image6_hu_57885acff31b89f9.png 450w, https://cimpleo.com/uploads/blog_2020-07-17_image6_hu_f4e2ba7188731351.png 1070w, https://cimpleo.com/uploads/blog_2020-07-17_image6.png 477w&#34; sizes=&#34;(max-width: 480px) 450px, 1070px&#34;&gt;&#xA;&lt;img class=&#34;img-fluid lazyload&#34; alt=&#34;NestJS Flexible, reusable, scalable modules design&#34; width=&#34;477&#34; height=&#34;754&#34; data-src=&#34;https://cimpleo.com/uploads/blog_2020-07-17_image6.png&#34;&gt;&#xA;&lt;/picture&gt;&#xA;&lt;p&gt;We can provide any external interface to interact with low level modules like Http, Websocket, Rpc, etc… - Scalable and flexible !&lt;/p&gt;&#xA;&lt;p&gt;Now we can create a Bedroom module which will be based on other modules.&lt;/p&gt;&#xA;&lt;picture&gt;&lt;source type=&#34;image/webp&#34; data-srcset=&#34;https://cimpleo.com/uploads/blog_2020-07-17_image5_hu_bf1597102332c524.webp 450w, https://cimpleo.com/uploads/blog_2020-07-17_image5_hu_aada8bf0689c13fe.webp 1070w, https://cimpleo.com/uploads/blog_2020-07-17_image5_hu_d61e5de9248215cb.webp 475w&#34; sizes=&#34;(max-width: 480px) 450px, 1070px&#34;&gt;&#xA;&lt;source type=&#34;image/png&#34; data-srcset=&#34;https://cimpleo.com/uploads/blog_2020-07-17_image5_hu_10adf9dce19e88a0.png 450w, https://cimpleo.com/uploads/blog_2020-07-17_image5_hu_4b35c3daef798653.png 1070w, https://cimpleo.com/uploads/blog_2020-07-17_image5.png 475w&#34; sizes=&#34;(max-width: 480px) 450px, 1070px&#34;&gt;&#xA;&lt;img class=&#34;img-fluid lazyload&#34; alt=&#34;NestJS Flexible, reusable, scalable modules design&#34; width=&#34;475&#34; height=&#34;384&#34; data-src=&#34;https://cimpleo.com/uploads/blog_2020-07-17_image5.png&#34;&gt;&#xA;&lt;/picture&gt;&#xA;&lt;p&gt;We can provide Http and Websocket modules over Bedroom.&lt;/p&gt;&#xA;&lt;p&gt;NOTE: HttpBedroom should provide an interface for the bedroom only. We cannot create, edit, remove chairs using HttpBedroom.&lt;/p&gt;&#xA;&lt;p&gt;Now we can compile our Http Application with module combination that looks like&lt;/p&gt;&#xA;&lt;picture&gt;&lt;source type=&#34;image/webp&#34; data-srcset=&#34;https://cimpleo.com/uploads/blog_2020-07-17_image8_hu_53afbd1a90d6a562.webp 450w, https://cimpleo.com/uploads/blog_2020-07-17_image8_hu_5c46b5523403582f.webp 1070w, https://cimpleo.com/uploads/blog_2020-07-17_image8_hu_bdb5e2f6ed3946c6.webp 588w&#34; sizes=&#34;(max-width: 480px) 450px, 1070px&#34;&gt;&#xA;&lt;source type=&#34;image/png&#34; data-srcset=&#34;https://cimpleo.com/uploads/blog_2020-07-17_image8_hu_89a33d5e1bab9574.png 450w, https://cimpleo.com/uploads/blog_2020-07-17_image8_hu_2d17792bda4964f9.png 1070w, https://cimpleo.com/uploads/blog_2020-07-17_image8.png 588w&#34; sizes=&#34;(max-width: 480px) 450px, 1070px&#34;&gt;&#xA;&lt;img class=&#34;img-fluid lazyload&#34; alt=&#34;NestJS Flexible, reusable, scalable modules design&#34; width=&#34;588&#34; height=&#34;202&#34; data-src=&#34;https://cimpleo.com/uploads/blog_2020-07-17_image8.png&#34;&gt;&#xA;&lt;/picture&gt;&#xA;&lt;p&gt;Also we can build WebSocket Application using websocket modules.&lt;/p&gt;&#xA;&lt;picture&gt;&lt;source type=&#34;image/webp&#34; data-srcset=&#34;https://cimpleo.com/uploads/blog_2020-07-17_image3_hu_4b73cab41096f146.webp 450w, https://cimpleo.com/uploads/blog_2020-07-17_image3_hu_cbcfa08a894f6cab.webp 1070w, https://cimpleo.com/uploads/blog_2020-07-17_image3_hu_909cbf6e369f5f36.webp 449w&#34; sizes=&#34;(max-width: 480px) 450px, 1070px&#34;&gt;&#xA;&lt;source type=&#34;image/png&#34; data-srcset=&#34;https://cimpleo.com/uploads/blog_2020-07-17_image3_hu_17f4b24b2b3386c2.png 450w, https://cimpleo.com/uploads/blog_2020-07-17_image3_hu_5b07ef1b6e9e82d1.png 1070w, https://cimpleo.com/uploads/blog_2020-07-17_image3.png 449w&#34; sizes=&#34;(max-width: 480px) 450px, 1070px&#34;&gt;&#xA;&lt;img class=&#34;img-fluid lazyload&#34; alt=&#34;NestJS Flexible, reusable, scalable modules design&#34; width=&#34;449&#34; height=&#34;215&#34; data-src=&#34;https://cimpleo.com/uploads/blog_2020-07-17_image3.png&#34;&gt;&#xA;&lt;/picture&gt;&#xA;&lt;p&gt;With this design we got flexibility, scalability and reusability. We can build any variations of our application using modules.&lt;/p&gt;&#xA;&lt;p&gt;Code example:&#xA;&lt;a href=&#34;https://gitlab.com/cimpleo/blog/nest-modules-architect-example&#34;&gt;https://gitlab.com/cimpleo/blog/nest-modules-architect-example&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;For a practical walkthrough of building and documenting a NestJS module with Swagger — covering Entity, Service, Repository, and DTO — see &lt;a href=&#34;https://cimpleo.com/blog/nestjs-modules--swagger-api-documentation-best-practices/&#34;&gt;NestJS Modules + Swagger: API Documentation Best Practices&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Need a scalable NestJS or Node.js backend built to production standards? CimpleO&amp;rsquo;s &lt;a href=&#34;https://cimpleo.com/services/fullstack-develop/&#34;&gt;full-stack development team&lt;/a&gt; handles API design, module architecture, and deployment. &lt;a href=&#34;https://cimpleo.com/contact/&#34;&gt;Tell us about your project&lt;/a&gt;.&lt;/p&gt;&#xA;</content:encoded>
    </item>
    <item>
      <title>NestJS Modules &#43; Swagger: API Documentation Best Practices</title>
      <link>https://cimpleo.com/blog/nestjs-modules--swagger-api-documentation-best-practices/</link>
      <pubDate>Fri, 17 Jul 2020 06:00:00 +0000</pubDate>
      <guid isPermaLink="true">https://cimpleo.com/blog/nestjs-modules--swagger-api-documentation-best-practices/</guid>
      <description>Build a NestJS module with Entity, Service, Repository, Controller, and DTO — then document it with @nestjs/swagger. @ApiProperty, @ApiTags, and @ApiResponse examples included.</description>
      <content:encoded>&lt;p&gt;Nestjs, not like any other nodejs frameworks, has many handy tools,&#xA;libraries and features that let us write our programs following clean code&#xA;and scalable architecture. In this article we’ll find out how to use swagger&#xA;for documentation of our application, and also know the best practices for module creation.&#xA;&lt;picture&gt;&lt;source type=&#34;image/webp&#34; data-srcset=&#34;https://cimpleo.com/uploads/blog_blog_nestJs-full_hu_b169a2b0f28934e6.webp 450w, https://cimpleo.com/uploads/blog_blog_nestJs-full_hu_8e1377a06969c910.webp 1070w, https://cimpleo.com/uploads/blog_blog_nestJs-full_hu_db5e8deb0fbcd4e8.webp 1240w&#34; sizes=&#34;(max-width: 480px) 450px, 1070px&#34;&gt;&#xA;&lt;source type=&#34;image/png&#34; data-srcset=&#34;https://cimpleo.com/uploads/blog_blog_nestJs-full_hu_1d2f35fa34409291.png 450w, https://cimpleo.com/uploads/blog_blog_nestJs-full_hu_d7a408624fd9c6e0.png 1070w, https://cimpleo.com/uploads/blog_blog_nestJs-full.png 1240w&#34; sizes=&#34;(max-width: 480px) 450px, 1070px&#34;&gt;&#xA;&lt;img class=&#34;img-fluid lazyload&#34; alt=&#34;NestJs&#34; width=&#34;1240&#34; height=&#34;500&#34; data-src=&#34;https://cimpleo.com/uploads/blog_blog_nestJs-full.png&#34;&gt;&#xA;&lt;/picture&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;installation-dependencies&#34;&gt;Installation dependencies&lt;/h2&gt;&#xA;&lt;p&gt;Install nestjs cli globally for future creating projects&#xA;&lt;code&gt;npm i -g @nestjs/cli&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Initialize new project using following command&#xA;&lt;code&gt;nest new app&amp;lt;/code&amp;gt; &lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Install swagger dependencies&#xA;&lt;code&gt;npm install --save @nestjs/swagger swagger-ui-express&lt;/code&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;create-a-simple-module&#34;&gt;Create a simple module&lt;/h2&gt;&#xA;&lt;p&gt;Nestjs promotes module architecture like angular. Each module should be independent and designed so that it can be used in any application.&lt;/p&gt;&#xA;&lt;p&gt;We will create a typically cats module as an example. The architectural module includes Entity, Service, Repository, Controller, DTO.&lt;/p&gt;&#xA;&lt;h2 id=&#34;entity&#34;&gt;Entity&lt;/h2&gt;&#xA;&lt;p&gt;Let&amp;rsquo;s describe our entity. Entity is a representative of some real object. If there is a cat in the world, then in our program it is described by using an entity.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#000;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-typescript&#34; data-lang=&#34;typescript&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0f0&#34;&gt;// src/module/cat/entity/Cat.ts&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;export&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;class&lt;/span&gt; Cat {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    id: &lt;span style=&#34;color:#ee82ee&#34;&gt;number&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    name: &lt;span style=&#34;color:#ee82ee&#34;&gt;string&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    weight: &lt;span style=&#34;color:#ee82ee&#34;&gt;number&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;constructor&lt;/span&gt; (id: &lt;span style=&#34;color:#ee82ee&#34;&gt;number&lt;/span&gt;, name: &lt;span style=&#34;color:#ee82ee&#34;&gt;string&lt;/span&gt;, weight: &lt;span style=&#34;color:#ee82ee&#34;&gt;number&lt;/span&gt;) {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f00&#34;&gt;this&lt;/span&gt;.id = id;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f00&#34;&gt;this&lt;/span&gt;.name = name;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f00&#34;&gt;this&lt;/span&gt;.weight = weight;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;service&#34;&gt;Service&lt;/h2&gt;&#xA;&lt;p&gt;You need to describe the logic somewhere, how the code is created, how to get the list of cats, or take one cat. For this, services are used.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#000;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-typescript&#34; data-lang=&#34;typescript&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0f0&#34;&gt;// src/module/cat/service/CatService.ts&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;import&lt;/span&gt; { Cat } &lt;span style=&#34;color:#f00&#34;&gt;from&lt;/span&gt; &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;../entity/Cat&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;import&lt;/span&gt; { CreateCatData } &lt;span style=&#34;color:#f00&#34;&gt;from&lt;/span&gt; &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;../dto/CreateCatData&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;import&lt;/span&gt; { Injectable, NotFoundException } &lt;span style=&#34;color:#f00&#34;&gt;from&lt;/span&gt; &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;@nestjs/common&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;@Injectable&lt;/span&gt;()&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;export&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;class&lt;/span&gt; CatService {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;private&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;readonly&lt;/span&gt; cats: &lt;span style=&#34;color:#ee82ee&#34;&gt;Cat&lt;/span&gt;[] = [];&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;async&lt;/span&gt; add(data: &lt;span style=&#34;color:#ee82ee&#34;&gt;CreateCatData&lt;/span&gt;): Promise&amp;lt;Cat&amp;gt; {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f00&#34;&gt;const&lt;/span&gt; cat = &lt;span style=&#34;color:#f00&#34;&gt;new&lt;/span&gt; Cat(&lt;span style=&#34;color:#f00&#34;&gt;this&lt;/span&gt;.cats.length, data.name, data.weight);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f00&#34;&gt;this&lt;/span&gt;.cats.push(cat);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f00&#34;&gt;return&lt;/span&gt; cat;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;async&lt;/span&gt; list(): Promise&amp;lt;Cat[]&amp;gt; {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f00&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;this&lt;/span&gt;.cats;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;async&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;get&lt;/span&gt;(id: &lt;span style=&#34;color:#ee82ee&#34;&gt;number&lt;/span&gt;): Promise&amp;lt;Cat&amp;gt; {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f00&#34;&gt;const&lt;/span&gt; cat = &lt;span style=&#34;color:#f00&#34;&gt;this&lt;/span&gt;.cats.find(cat =&amp;gt; cat.id === id);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f00&#34;&gt;if&lt;/span&gt;(!cat) {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#f00&#34;&gt;throw&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;new&lt;/span&gt; NotFoundException(&lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;Cat not found&amp;#34;&lt;/span&gt;);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f00&#34;&gt;return&lt;/span&gt; cat;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Make developers make a mistake at this stage. I committed it too.&lt;/p&gt;&#xA;&lt;p&gt;Since there’s not so much code and we don’t work with connecting to the database, an array is used to store entities, we didn’t notice this problem. We described this array directly in the service, in a real project we would inject a connection to the database here and start working with it. Which would lead to a violation of the first principle of SOLID - Single Responsibility. It must be remembered that the service is responsible for business logic, and not for working with data.&#xA;To work with data, another pattern is used - Repository.&lt;/p&gt;&#xA;&lt;h2 id=&#34;repository&#34;&gt;Repository&lt;/h2&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#000;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-typescript&#34; data-lang=&#34;typescript&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0f0&#34;&gt;// src/module/cat/repository/CatRepository.ts&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;import&lt;/span&gt; { Injectable, NotFoundException } &lt;span style=&#34;color:#f00&#34;&gt;from&lt;/span&gt; &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;@nestjs/common&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;import&lt;/span&gt; { Cat } &lt;span style=&#34;color:#f00&#34;&gt;from&lt;/span&gt; &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;../entity/Cat&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;@Injectable&lt;/span&gt;()&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;export&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;class&lt;/span&gt; CatRepository {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;private&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;readonly&lt;/span&gt; cats: &lt;span style=&#34;color:#ee82ee&#34;&gt;Cat&lt;/span&gt;[] = [];&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;async&lt;/span&gt; save(cat: &lt;span style=&#34;color:#ee82ee&#34;&gt;Cat&lt;/span&gt;): Promise&amp;lt;void&amp;gt; {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f00&#34;&gt;this&lt;/span&gt;.cats.push(cat);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;async&lt;/span&gt; findAll(): Promise&amp;lt;Cat[]&amp;gt; {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f00&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;this&lt;/span&gt;.cats;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;async&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;get&lt;/span&gt;(id: &lt;span style=&#34;color:#ee82ee&#34;&gt;number&lt;/span&gt;): Promise&amp;lt;Cat&amp;gt; {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f00&#34;&gt;const&lt;/span&gt; cat = &lt;span style=&#34;color:#f00&#34;&gt;this&lt;/span&gt;.cats.find(cat =&amp;gt; cat.id === id);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f00&#34;&gt;if&lt;/span&gt;(!cat) {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#f00&#34;&gt;throw&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;new&lt;/span&gt; NotFoundException(&lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;Cat not found&amp;#34;&lt;/span&gt;);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f00&#34;&gt;return&lt;/span&gt; cat;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Now our service works with a repository. Let`s correct code in service.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#000;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-typescript&#34; data-lang=&#34;typescript&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0f0&#34;&gt;// src/module/cat/service/CatService.ts&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;import&lt;/span&gt; { Cat } &lt;span style=&#34;color:#f00&#34;&gt;from&lt;/span&gt; &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;../entity/Cat&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;import&lt;/span&gt; { CreateCatData } &lt;span style=&#34;color:#f00&#34;&gt;from&lt;/span&gt; &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;../dto/CreateCatData&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;import&lt;/span&gt; { Injectable } &lt;span style=&#34;color:#f00&#34;&gt;from&lt;/span&gt; &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;@nestjs/common&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;import&lt;/span&gt; { CatRepository } &lt;span style=&#34;color:#f00&#34;&gt;from&lt;/span&gt; &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;../repository/CatRepository&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;@Injectable&lt;/span&gt;()&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;export&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;class&lt;/span&gt; CatService {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;constructor&lt;/span&gt;(&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f00&#34;&gt;private&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;readonly&lt;/span&gt; catRepository: &lt;span style=&#34;color:#ee82ee&#34;&gt;CatRepository&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ) {}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;async&lt;/span&gt; add(data: &lt;span style=&#34;color:#ee82ee&#34;&gt;CreateCatData&lt;/span&gt;): Promise&amp;lt;Cat&amp;gt; {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f00&#34;&gt;const&lt;/span&gt; id = &lt;span style=&#34;color:#f00&#34;&gt;this&lt;/span&gt;.catRepository.count;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f00&#34;&gt;const&lt;/span&gt; cat = &lt;span style=&#34;color:#f00&#34;&gt;new&lt;/span&gt; Cat(id, data.name, data.weight);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f00&#34;&gt;await&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;this&lt;/span&gt;.catRepository.save(cat);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f00&#34;&gt;return&lt;/span&gt; cat;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;async&lt;/span&gt; list(): Promise&amp;lt;Cat[]&amp;gt; {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f00&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;this&lt;/span&gt;.catRepository.findAll();&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;async&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;get&lt;/span&gt;(id: &lt;span style=&#34;color:#ee82ee&#34;&gt;number&lt;/span&gt;): Promise&amp;lt;Cat&amp;gt; {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f00&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;this&lt;/span&gt;.catRepository.&lt;span style=&#34;color:#f00&#34;&gt;get&lt;/span&gt;(id);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;data-transfer-object--dto-&#34;&gt;Data Transfer Object ( DTO )&lt;/h2&gt;&#xA;&lt;p&gt;Let&amp;rsquo;s move on to the next pattern. This is a Data Transfer Object.&#xA;Often, service methods require a lot of arguments. In this case, the Date Transfer Object pattern comes to our aid. This is an object that encloses in its properties all the arguments that the service requires. In our case, this is an &amp;ldquo;add&amp;rdquo; method.&lt;/p&gt;&#xA;&lt;p&gt;DTO class is really simple.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#000;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-typescript&#34; data-lang=&#34;typescript&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0f0&#34;&gt;// src/module/cat/dto/CreateCatData.ts&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;export&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;class&lt;/span&gt; CreateCatData {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    name: &lt;span style=&#34;color:#ee82ee&#34;&gt;string&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    weight: &lt;span style=&#34;color:#ee82ee&#34;&gt;number&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;controller&#34;&gt;Controller&lt;/h2&gt;&#xA;&lt;p&gt;Last pattern in this article, but not last in NestJS.&#xA;It should be noted that the controller is a pattern that is responsible for accepting the input data and sending them further to the system. The classes representing the Controller can only contain user input, validation, launching the appropriate service method, and generating a response.&lt;/p&gt;&#xA;&lt;p&gt;In our case controller looks like&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#000;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-typescript&#34; data-lang=&#34;typescript&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0f0&#34;&gt;// src/module/cat/controller/CatController.ts&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;import&lt;/span&gt; { Body, Controller, Get, Param, ParseIntPipe, Post } &lt;span style=&#34;color:#f00&#34;&gt;from&lt;/span&gt; &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;@nestjs/common&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;import&lt;/span&gt; { CatService } &lt;span style=&#34;color:#f00&#34;&gt;from&lt;/span&gt; &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;../service/CatService&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;import&lt;/span&gt; { Cat } &lt;span style=&#34;color:#f00&#34;&gt;from&lt;/span&gt; &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;../entity/Cat&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;import&lt;/span&gt; { CreateCatData } &lt;span style=&#34;color:#f00&#34;&gt;from&lt;/span&gt; &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;../dto/CreateCatData&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;@Controller&lt;/span&gt;()&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;export&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;class&lt;/span&gt; CatController {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;constructor&lt;/span&gt;(&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f00&#34;&gt;private&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;readonly&lt;/span&gt; catService: &lt;span style=&#34;color:#ee82ee&#34;&gt;CatService&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ) {}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;@Post&lt;/span&gt;(&lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;/cat&amp;#34;&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;async&lt;/span&gt; create(&lt;span style=&#34;color:#f00&#34;&gt;@Body&lt;/span&gt;() data: &lt;span style=&#34;color:#ee82ee&#34;&gt;CreateCatData&lt;/span&gt;): Promise&amp;lt;Cat&amp;gt; {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f00&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;this&lt;/span&gt;.catService.add(data);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;@Get&lt;/span&gt;(&lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;/cats&amp;#34;&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;async&lt;/span&gt; list(): Promise&amp;lt;Cat[]&amp;gt; {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f00&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;this&lt;/span&gt;.catService.list();&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;@Get&lt;/span&gt;(&lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;/cat/:id&amp;#34;&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;async&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;get&lt;/span&gt;(&lt;span style=&#34;color:#f00&#34;&gt;@Param&lt;/span&gt;(&lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;id&amp;#34;&lt;/span&gt;, ParseIntPipe) id: &lt;span style=&#34;color:#ee82ee&#34;&gt;number&lt;/span&gt;): Promise&amp;lt;Cat&amp;gt; {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f00&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;this&lt;/span&gt;.catService.&lt;span style=&#34;color:#f00&#34;&gt;get&lt;/span&gt;(id);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Module&lt;/p&gt;&#xA;&lt;p&gt;Now we need to enclose in a module all that we’ve described.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#000;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-typescript&#34; data-lang=&#34;typescript&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0f0&#34;&gt;// src/module/cat/CatModule.ts&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;import&lt;/span&gt; { Module } &lt;span style=&#34;color:#f00&#34;&gt;from&lt;/span&gt; &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;@nestjs/common&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;import&lt;/span&gt; { CatController } &lt;span style=&#34;color:#f00&#34;&gt;from&lt;/span&gt; &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;./controller/CatController&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;import&lt;/span&gt; { CatService } &lt;span style=&#34;color:#f00&#34;&gt;from&lt;/span&gt; &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;./service/CatService&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;import&lt;/span&gt; { CatRepository } &lt;span style=&#34;color:#f00&#34;&gt;from&lt;/span&gt; &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;./repository/CatRepository&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;@Module&lt;/span&gt;({&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    controllers: [&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        CatController&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ],&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    providers: [&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        CatService,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        CatRepository&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ],&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    exports: [&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        CatService,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        CatRepository&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;})&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;export&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;class&lt;/span&gt; CatModule {}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Controllers specify in the &amp;ldquo;controllers&amp;rdquo; section. On the compiling stage nestjs will use these classes and provide http interface.&lt;/p&gt;&#xA;&lt;p&gt;&amp;ldquo;providers&amp;rdquo; is an array of classes that are used in our module. On the compiling stage nestjs will create objects automatically with resolving constructor dependencies.&lt;/p&gt;&#xA;&lt;p&gt;&amp;ldquo;exports&amp;rdquo; - in this section you can specify providers classes that can be used in providers other modules.&lt;/p&gt;&#xA;&lt;p&gt;Module import.&lt;/p&gt;&#xA;&lt;p&gt;Go to AppModule and import our module. Specify our module in &amp;ldquo;imports&amp;rdquo; section and try to run the application using following command &lt;code&gt;npm run start:dev&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;In the logs, we can observe that the module has connected our module and provided the routes for interaction via HTTP with our controller.&lt;/p&gt;&#xA;&lt;p&gt;Works fine !&lt;/p&gt;&#xA;&lt;p&gt;Swagger&lt;/p&gt;&#xA;&lt;p&gt;Let&amp;rsquo;s add documentation to our module and application as a whole.&lt;/p&gt;&#xA;&lt;p&gt;You need to connect the swagger module for this in &amp;ldquo;main.ts&amp;rdquo; so you should write the following code&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#000;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-typescript&#34; data-lang=&#34;typescript&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0f0&#34;&gt;// src/main.ts&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;import&lt;/span&gt; { NestFactory } &lt;span style=&#34;color:#f00&#34;&gt;from&lt;/span&gt; &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#39;@nestjs/core&amp;#39;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;import&lt;/span&gt; { AppModule } &lt;span style=&#34;color:#f00&#34;&gt;from&lt;/span&gt; &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#39;./app.module&amp;#39;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;import&lt;/span&gt; { DocumentBuilder, SwaggerModule } &lt;span style=&#34;color:#f00&#34;&gt;from&lt;/span&gt; &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;@nestjs/swagger&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;(&lt;span style=&#34;color:#f00&#34;&gt;async&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;function&lt;/span&gt; bootstrap() {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#f00&#34;&gt;const&lt;/span&gt; app = &lt;span style=&#34;color:#f00&#34;&gt;await&lt;/span&gt; NestFactory.create(AppModule);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#f00&#34;&gt;const&lt;/span&gt; options = &lt;span style=&#34;color:#f00&#34;&gt;new&lt;/span&gt; DocumentBuilder()&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      .setVersion(&lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#39;1.0&amp;#39;&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      .build();&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#f00&#34;&gt;const&lt;/span&gt; document = SwaggerModule.createDocument(app, options);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  SwaggerModule.setup(&lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#39;/docs&amp;#39;&lt;/span&gt;, app, document);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#f00&#34;&gt;await&lt;/span&gt; app.listen(&lt;span style=&#34;color:#f60&#34;&gt;3000&lt;/span&gt;);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;})()&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Go to &lt;code&gt;localhost:3000/docs&lt;/code&gt; and you can already see that your controller has a documentation. But it’s still not clear how to work with your API. Add clarity.&lt;/p&gt;&#xA;&lt;p&gt;Add decorators on properties in DTO.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#000;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-typescript&#34; data-lang=&#34;typescript&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0f0&#34;&gt;// src/module/cat/dto/CreateCatData.ts&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;import&lt;/span&gt; { ApiProperty } &lt;span style=&#34;color:#f00&#34;&gt;from&lt;/span&gt; &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;@nestjs/swagger&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;export&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;class&lt;/span&gt; CreateCatData {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;@ApiProperty&lt;/span&gt;({&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        required: &lt;span style=&#34;color:#ee82ee&#34;&gt;true&lt;/span&gt;,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f00&#34;&gt;type&lt;/span&gt;: &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#39;string&amp;#39;&lt;/span&gt;,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        name: &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#39;name&amp;#39;&lt;/span&gt;,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        description: &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#39;name of your cat&amp;#39;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    })&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    name: &lt;span style=&#34;color:#ee82ee&#34;&gt;string&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;@ApiProperty&lt;/span&gt;({&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        required: &lt;span style=&#34;color:#ee82ee&#34;&gt;true&lt;/span&gt;,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f00&#34;&gt;type&lt;/span&gt;: &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#39;number&amp;#39;&lt;/span&gt;,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        name: &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#39;weight&amp;#39;&lt;/span&gt;,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        description: &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#39;weight of you cat&amp;#39;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    })&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    weight: &lt;span style=&#34;color:#ee82ee&#34;&gt;number&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Now we can see request schema on &lt;code&gt;POST /cat&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Document our controller.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#000;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-typescript&#34; data-lang=&#34;typescript&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0f0&#34;&gt;// src/module/cat/controller/CatController.ts&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;@Controller&lt;/span&gt;()&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;@ApiTags&lt;/span&gt;(&lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;Cats&amp;#34;&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;export&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;class&lt;/span&gt; CatController {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;constructor&lt;/span&gt;(&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f00&#34;&gt;private&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;readonly&lt;/span&gt; catService: &lt;span style=&#34;color:#ee82ee&#34;&gt;CatService&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ) {}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;@Post&lt;/span&gt;(&lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;/cat&amp;#34;&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;@ApiResponse&lt;/span&gt;({&lt;span style=&#34;color:#f00&#34;&gt;type&lt;/span&gt;: Cat, status: &lt;span style=&#34;color:#ee82ee&#34;&gt;201&lt;/span&gt;})&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;async&lt;/span&gt; create(&lt;span style=&#34;color:#f00&#34;&gt;@Body&lt;/span&gt;() data: &lt;span style=&#34;color:#ee82ee&#34;&gt;CreateCatData&lt;/span&gt;): Promise&amp;lt;Cat&amp;gt; {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f00&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;this&lt;/span&gt;.catService.add(data);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;@Get&lt;/span&gt;(&lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;/cats&amp;#34;&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;@ApiResponse&lt;/span&gt;({&lt;span style=&#34;color:#f00&#34;&gt;type&lt;/span&gt;: Cat, isArray: &lt;span style=&#34;color:#ee82ee&#34;&gt;true&lt;/span&gt;, status: &lt;span style=&#34;color:#ee82ee&#34;&gt;200&lt;/span&gt;})&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;async&lt;/span&gt; list(): Promise&amp;lt;Cat[]&amp;gt; {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f00&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;this&lt;/span&gt;.catService.list();&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;@Get&lt;/span&gt;(&lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;/cat/:id&amp;#34;&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;@ApiResponse&lt;/span&gt;({&lt;span style=&#34;color:#f00&#34;&gt;type&lt;/span&gt;: Cat, status: &lt;span style=&#34;color:#ee82ee&#34;&gt;200&lt;/span&gt;})&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;@HttpCode&lt;/span&gt;(&lt;span style=&#34;color:#f60&#34;&gt;200&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;async&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;get&lt;/span&gt;(&lt;span style=&#34;color:#f00&#34;&gt;@Param&lt;/span&gt;(&lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;id&amp;#34;&lt;/span&gt;, ParseIntPipe) id: &lt;span style=&#34;color:#ee82ee&#34;&gt;number&lt;/span&gt;): Promise&amp;lt;Cat&amp;gt; {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f00&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;this&lt;/span&gt;.catService.&lt;span style=&#34;color:#f00&#34;&gt;get&lt;/span&gt;(id);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Thanks to ApiTags we have added a separate list under our heading, which includes all the methods of the Controller. Therefore we got an empty response schema, and we’re going to fix it - by adding a description of properties to our entity.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#000;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-typescript&#34; data-lang=&#34;typescript&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#0f0&#34;&gt;// src/module/cat/entity/Cat.ts&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;import&lt;/span&gt; { ApiProperty } &lt;span style=&#34;color:#f00&#34;&gt;from&lt;/span&gt; &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#34;@nestjs/swagger&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f00&#34;&gt;export&lt;/span&gt; &lt;span style=&#34;color:#f00&#34;&gt;class&lt;/span&gt; Cat {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;@ApiProperty&lt;/span&gt;({&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f00&#34;&gt;type&lt;/span&gt;: &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#39;number&amp;#39;&lt;/span&gt;,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        name: &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#39;id&amp;#39;&lt;/span&gt;,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        description: &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#39;id of cat&amp;#39;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    })&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    id: &lt;span style=&#34;color:#ee82ee&#34;&gt;number&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;@ApiProperty&lt;/span&gt;({&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f00&#34;&gt;type&lt;/span&gt;: &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#39;string&amp;#39;&lt;/span&gt;,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        name: &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#39;name&amp;#39;&lt;/span&gt;,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        description: &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#39;name of cat&amp;#39;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    })&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    name: &lt;span style=&#34;color:#ee82ee&#34;&gt;string&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;@ApiProperty&lt;/span&gt;({&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f00&#34;&gt;type&lt;/span&gt;: &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#39;number&amp;#39;&lt;/span&gt;,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        name: &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#39;weight&amp;#39;&lt;/span&gt;,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        description: &lt;span style=&#34;color:#87ceeb&#34;&gt;&amp;#39;weight of cat&amp;#39;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    })&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    weight: &lt;span style=&#34;color:#ee82ee&#34;&gt;number&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f00&#34;&gt;constructor&lt;/span&gt;(id: &lt;span style=&#34;color:#ee82ee&#34;&gt;number&lt;/span&gt;, name: &lt;span style=&#34;color:#ee82ee&#34;&gt;string&lt;/span&gt;, weight: &lt;span style=&#34;color:#ee82ee&#34;&gt;number&lt;/span&gt;) {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f00&#34;&gt;this&lt;/span&gt;.id = id;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f00&#34;&gt;this&lt;/span&gt;.name = name;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f00&#34;&gt;this&lt;/span&gt;.weight = weight;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Now, when we open our route, we have a complete vision of how it works, what kind of request should be sent, and what will be the response.&lt;/p&gt;&#xA;&lt;p&gt;We can send requests directly from swagger. To do this click &amp;ldquo;try in out&amp;rdquo;.&lt;/p&gt;&#xA;&lt;p&gt;We examined how to create modules and document them. Good luck !&lt;/p&gt;&#xA;&lt;p&gt;For the architecture patterns that make these modules reusable across HTTP, WebSocket, and gRPC without rewiring, see &lt;a href=&#34;https://cimpleo.com/blog/nestjs-module-design-best-practices/&#34;&gt;NestJS Module Design: Best Practices&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Building a production NestJS API and need senior full-stack support? CimpleO&amp;rsquo;s &lt;a href=&#34;https://cimpleo.com/services/fullstack-develop/&#34;&gt;full-stack development team&lt;/a&gt; works with Node.js, NestJS, and TypeScript from architecture to deployment. &lt;a href=&#34;https://cimpleo.com/contact/&#34;&gt;Get in touch&lt;/a&gt;.&lt;/p&gt;&#xA;</content:encoded>
    </item>
    <item>
      <title>Kafka in IoT: Real-Time Data Streaming</title>
      <link>https://cimpleo.com/blog/kafka-in-iot-real-time-data-streaming/</link>
      <pubDate>Wed, 03 Jul 2024 00:00:00 +0000</pubDate>
      <guid isPermaLink="true">https://cimpleo.com/blog/kafka-in-iot-real-time-data-streaming/</guid>
      <description>Apache Kafka for IoT data pipelines: ingests 25 GB/hour from connected vehicles, terabytes/day from smart factories. MQTT bridging, edge deployment, consumer groups, Smart Home, Industrial IoT, and Connected Vehicles use cases.</description>
      <content:encoded>&lt;picture class=&#34;badge&#34;&gt;&lt;source type=&#34;image/webp&#34; data-srcset=&#34;https://cimpleo.com/uploads/kafka_hu_2cedee8b1aef8d91.webp 450w, https://cimpleo.com/uploads/kafka_hu_73eb153142329bb9.webp 1070w, https://cimpleo.com/uploads/kafka_hu_7e3a05e029576318.webp 600w&#34; sizes=&#34;(max-width: 480px) 450px, 1070px&#34;&gt;&#xA;&lt;source type=&#34;image/png&#34; data-srcset=&#34;https://cimpleo.com/uploads/kafka_hu_a872a2a41940325f.png 450w, https://cimpleo.com/uploads/kafka_hu_d3f83d8f434e4f1d.png 1070w, https://cimpleo.com/uploads/kafka.png 600w&#34; sizes=&#34;(max-width: 480px) 450px, 1070px&#34;&gt;&#xA;&lt;img class=&#34;img-fluid lazyload&#34; alt=&#34;Illustration&#34; width=&#34;600&#34; height=&#34;600&#34; data-src=&#34;https://cimpleo.com/uploads/kafka.png&#34;&gt;&#xA;&lt;/picture&gt;&#xA;&lt;p&gt;Connected devices produce data at rates that most traditional message brokers can&amp;rsquo;t handle reliably. A single connected vehicle generates up to 25 GB per hour. A smart factory can produce terabytes daily. Kafka was built for exactly this kind of load — durable, distributed, high-throughput event streaming at any scale.&lt;/p&gt;&#xA;&lt;h2 id=&#34;iot-data-challenges&#34;&gt;IoT Data Challenges&lt;/h2&gt;&#xA;&lt;p&gt;IoT deployments hit four consistent infrastructure problems:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;strong&gt;Ingestion at scale&lt;/strong&gt;: Devices stream data continuously. Volume grows with the fleet.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Real-time processing&lt;/strong&gt;: Equipment failure detection, environmental response, and anomaly alerting all require low-latency processing — not batch jobs running hourly.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Protocol diversity&lt;/strong&gt;: Sensors, gateways, and edge devices speak different protocols (MQTT, HTTP, CoAP, proprietary binary). The backend needs a common layer.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Scale and fault tolerance&lt;/strong&gt;: Fleets grow unpredictably. The data infrastructure has to grow with them without losing events.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;apache-kafka-a-brief-overview&#34;&gt;Apache Kafka: A Brief Overview&lt;/h2&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://kafka.apache.org/&#34;&gt;Apache Kafka&lt;/a&gt; is an open-source distributed event streaming platform capable of handling trillions of events a day. Originally developed by LinkedIn and later donated to the Apache Software Foundation, Kafka has become a cornerstone technology for building real-time data pipelines and streaming applications.&lt;/p&gt;&#xA;&lt;h3 id=&#34;key-concepts-in-kafka&#34;&gt;Key Concepts in Kafka&lt;/h3&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Topics and partitions&lt;/strong&gt;: Topics are categories or feed names to which records are published. Each topic is divided into partitions, allowing for parallel processing and scalability.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Producers and consumers&lt;/strong&gt;: Producers publish data to Kafka topics, while consumers read from these topics. This decoupling of data production and consumption enables flexible and scalable architectures.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Brokers and clusters&lt;/strong&gt;: Kafka brokers are servers that store and manage topics. Multiple brokers form a Kafka cluster, providing redundancy and fault tolerance.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h3 id=&#34;kafkas-core-features&#34;&gt;Kafka&amp;rsquo;s Core Features&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;High throughput and low latency&lt;/li&gt;&#xA;&lt;li&gt;Scalability and fault tolerance&lt;/li&gt;&#xA;&lt;li&gt;Persistence and durability&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;These features make Kafka particularly well-suited for IoT applications, as we&amp;rsquo;ll explore in the next section.&lt;/p&gt;&#xA;&lt;h2 id=&#34;why-kafka-is-well-suited-for-iot&#34;&gt;Why Kafka is Well-Suited for IoT&lt;/h2&gt;&#xA;&lt;p&gt;Kafka&amp;rsquo;s design and features align closely with the requirements of IoT data management:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Handling high-volume data streams&lt;/strong&gt;: Kafka&amp;rsquo;s ability to ingest and process massive amounts of data in real-time makes it ideal for managing the continuous streams of data from IoT devices.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Supporting real-time data processing&lt;/strong&gt;: With its low-latency message delivery, Kafka enables the rapid analysis and action required by many IoT applications.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Enabling data integration from multiple sources&lt;/strong&gt;: Kafka acts as a central hub for data from diverse IoT devices, allowing for easy integration and standardization of data formats.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Ensuring scalability and fault tolerance&lt;/strong&gt;: As IoT deployments grow, Kafka can scale horizontally to accommodate increased data volumes while maintaining high availability.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Providing data persistence and replay capabilities&lt;/strong&gt;: Kafka&amp;rsquo;s durable storage allows for historical data analysis and helps manage scenarios where IoT devices may temporarily lose connectivity.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;kafka-in-iot-use-cases-and-implementations&#34;&gt;Kafka in IoT: Use Cases and Implementations&lt;/h2&gt;&#xA;&lt;p&gt;Kafka&amp;rsquo;s versatility has led to its adoption across various IoT domains:&lt;/p&gt;&#xA;&lt;h3 id=&#34;smart-home-systems&#34;&gt;Smart Home Systems&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Device data aggregation&lt;/strong&gt;: Kafka can aggregate data from various smart home devices (thermostats, security cameras, smart appliances) into a central stream for analysis and automation.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Real-time monitoring and alerts&lt;/strong&gt;: By processing device data in real-time, Kafka enables immediate notifications for events like security breaches or unusual energy consumption patterns.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;industrial-iot&#34;&gt;Industrial IoT&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Predictive maintenance&lt;/strong&gt;: Kafka can process streams of sensor data from industrial equipment, enabling real-time analysis to predict and prevent failures before they occur.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Production line optimization&lt;/strong&gt;: By aggregating and analyzing data from multiple points in a production process, Kafka helps identify bottlenecks and optimize operations in real-time.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;connected-vehicles&#34;&gt;Connected Vehicles&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Telematics and fleet management&lt;/strong&gt;: Kafka can ingest and process real-time data from vehicles, enabling fleet managers to monitor vehicle performance, track locations, and optimize routes.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Real-time traffic analysis&lt;/strong&gt;: By aggregating data from multiple vehicles and road sensors, Kafka supports systems that provide real-time traffic updates and optimize traffic flow.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;smart-cities&#34;&gt;Smart Cities&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Urban infrastructure monitoring&lt;/strong&gt;: Kafka can process data from various city sensors (air quality, noise levels, traffic) to provide real-time insights for city management.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Energy consumption optimization&lt;/strong&gt;: By analyzing data from smart meters and grid sensors, Kafka enables real-time load balancing and energy optimization across the city.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;implementing-kafka-in-iot-architectures&#34;&gt;Implementing Kafka in IoT Architectures&lt;/h2&gt;&#xA;&lt;p&gt;Integrating Kafka into IoT architectures involves several key considerations:&lt;/p&gt;&#xA;&lt;h3 id=&#34;iot-device-connectivity&#34;&gt;IoT Device Connectivity&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;MQTT integration with Kafka&lt;/strong&gt;: Many IoT devices use the lightweight MQTT protocol. Kafka Connect provides connectors to bridge MQTT and Kafka, allowing seamless data flow.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Edge computing and Kafka&lt;/strong&gt;: In some scenarios, running Kafka on edge devices or gateways can help manage network constraints and enable local data processing.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;data-ingestion-patterns&#34;&gt;Data Ingestion Patterns&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Direct device-to-Kafka communication&lt;/strong&gt;: In some cases, IoT devices may publish data directly to Kafka topics.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Gateway-based approaches&lt;/strong&gt;: Often, a gateway device aggregates data from multiple IoT devices and publishes to Kafka, reducing the complexity of direct device management.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;data-processing-and-analytics&#34;&gt;Data Processing and Analytics&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Stream processing with Kafka Streams&lt;/strong&gt;: Kafka&amp;rsquo;s built-in stream processing library allows for real-time data analysis and transformation within the Kafka ecosystem.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Integration with big data technologies&lt;/strong&gt;: Kafka integrates well with technologies like Apache Spark, Flink, or Hadoop for more complex analytics and batch processing of IoT data.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;security-considerations&#34;&gt;Security Considerations&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Authentication and authorization&lt;/strong&gt;: Kafka provides mechanisms for securing access to topics and ensuring that only authorized devices and applications can publish or consume data.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Encryption and data protection&lt;/strong&gt;: Implementing SSL/TLS encryption for data in transit and considering encryption for sensitive data at rest are crucial for IoT deployments.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;best-practices-for-using-kafka-in-iot&#34;&gt;Best Practices for Using Kafka in IoT&lt;/h2&gt;&#xA;&lt;p&gt;To maximize the benefits of Kafka in IoT deployments, consider the following best practices:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Proper topic design and partitioning&lt;/strong&gt;: Design topics to reflect your IoT data model and use partitioning effectively to enable parallel processing and ensure even data distribution.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Optimizing producer and consumer configurations&lt;/strong&gt;: Tune parameters like batch size, compression, and consumer group settings to balance between latency, throughput, and resource utilization.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Monitoring and performance tuning&lt;/strong&gt;: Implement comprehensive monitoring of your Kafka cluster to identify and address performance bottlenecks proactively.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Disaster recovery and data replication strategies&lt;/strong&gt;: Implement multi-datacenter replication to ensure data availability and enable disaster recovery in case of major outages.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;challenges-and-limitations-of-using-kafka-in-iot&#34;&gt;Challenges and Limitations of Using Kafka in IoT&lt;/h2&gt;&#xA;&lt;p&gt;While Kafka offers numerous benefits for IoT, it&amp;rsquo;s important to be aware of potential challenges:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Resource constraints on edge devices&lt;/strong&gt;: Kafka&amp;rsquo;s resource requirements may be too high for some resource-constrained IoT devices, necessitating gateway-based approaches.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Network reliability and connectivity issues&lt;/strong&gt;: Intermittent connectivity in IoT environments can pose challenges for maintaining consistent data streams.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Handling offline scenarios and data synchronization&lt;/strong&gt;: Designing systems to handle device offline periods and efficiently synchronize data once connectivity is restored is crucial.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Complexity in large-scale deployments&lt;/strong&gt;: As IoT deployments grow, managing a large Kafka cluster and ensuring consistent performance can become increasingly complex.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;future-trends-kafka-and-iot&#34;&gt;Future Trends: Kafka and IoT&lt;/h2&gt;&#xA;&lt;p&gt;Looking ahead, several trends are shaping the future of Kafka in IoT:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Edge computing and Kafka at the edge&lt;/strong&gt;: As edge computing gains prominence, we&amp;rsquo;re likely to see more implementations of Kafka running on edge devices or gateways, enabling local data processing and reducing latency.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Integration with AI and machine learning&lt;/strong&gt;: Combining Kafka&amp;rsquo;s streaming capabilities with AI and machine learning models will enable more sophisticated real-time analytics and predictive capabilities in IoT systems.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Advancements in Kafka to better support IoT use cases&lt;/strong&gt;: The Kafka community continues to evolve the platform, with features like KIP-500 (ZooKeeper removal) aimed at making Kafka lighter and more suitable for edge deployments.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Kafka is a proven backbone for IoT data pipelines at scale. The challenges — resource constraints on edge devices, intermittent connectivity, fleet management complexity — are real, but well-understood. The patterns exist. The tooling is mature.&lt;/p&gt;&#xA;&lt;p&gt;Building an IoT data pipeline and evaluating your architecture options? &lt;a href=&#34;mailto:hello@cimpleo.com&#34;&gt;Write to us at hello@cimpleo.com&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;CimpleO&amp;rsquo;s &lt;a href=&#34;https://cimpleo.com/services/iot/&#34;&gt;IoT development team&lt;/a&gt; handles end-to-end connected-device projects — firmware, cloud backend, real-time data pipelines, and mobile dashboards. We&amp;rsquo;ve shipped fleet management systems, industrial monitoring platforms, and smart logistics integrations. &lt;a href=&#34;mailto:hello@cimpleo.com&#34;&gt;Tell us about your project&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Building agritech or precision agriculture software? See our &lt;a href=&#34;https://cimpleo.com/industries/agriculture/&#34;&gt;AgriTech software development&lt;/a&gt; practice.&lt;/p&gt;&#xA;</content:encoded>
    </item>
    <item>
      <title>WooCommerce Performance Optimization Guide</title>
      <link>https://cimpleo.com/blog/advanced-woocommerce-performance-optimization/</link>
      <pubDate>Tue, 22 Oct 2024 00:00:00 +0000</pubDate>
      <guid isPermaLink="true">https://cimpleo.com/blog/advanced-woocommerce-performance-optimization/</guid>
      <description>Cut WooCommerce load times in the right order: NGINX + PHP-FPM, FastCGI cache + OPCache, MySQL indexing with HPOS and mysqltuner, frontend deferral. Covers Loader.io load testing and holiday-season scaling.</description>
      <content:encoded>&lt;h2 id=&#34;woocommerce-performance-optimization&#34;&gt;WooCommerce Performance Optimization&lt;/h2&gt;&#xA;&lt;p&gt;The holiday season concentrates 20–30% of annual e-commerce revenue into a few weeks. Slow sites during peak traffic don’t just frustrate users — they lose orders. A one-second delay in page load reduces conversions by roughly 7%. Nearly 70% of online shoppers abandon carts on slow sites.&lt;/p&gt;&#xA;&lt;p&gt;WooCommerce handles large catalogues and high traffic well when configured correctly. Plugin-heavy, default-configured stores on shared hosting do not. This guide covers the steps that produce the largest, most consistent performance gains.&lt;/p&gt;&#xA;&lt;h2 id=&#34;common-woocommerce-challenges-for-large-e-commerce-stores&#34;&gt;Common WooCommerce Challenges for Large E-Commerce Stores&lt;/h2&gt;&#xA;&lt;p&gt;Every big e-commerce store using WooCommerce eventually faces several common performance issues. These challenges, if left unaddressed, can significantly impact sales and operational efficiency:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Terribly Low Mobile PageSpeed Scores:&lt;/strong&gt; Many WooCommerce stores have Google PageSpeed scores below 20% for mobile, which can significantly impact user experience and conversion rates.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Slow Loading Times:&lt;/strong&gt; As product catalogs grow and customer traffic increases, slow load times become inevitable without proper optimization.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Database Bottlenecks:&lt;/strong&gt; WooCommerce databases can easily become bloated with unnecessary data, leading to sluggish performance and delays.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Admin Dashboard Sluggishness:&lt;/strong&gt; Managing orders and products becomes a pain when the admin dashboard struggles under the weight of thousands of records.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Inefficient Caching Strategies:&lt;/strong&gt; Not all caching plugins are suitable for large WooCommerce setups, and poorly implemented caching can lead to high CPU usage and site crashes.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Heavy Plugins and Scripts:&lt;/strong&gt; WooCommerce sites often rely on many plugins that introduce bloat and render-blocking scripts, significantly slowing down the front end.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Scaling Issues During High-Traffic Seasons:&lt;/strong&gt; The holiday season or promotional events can lead to sudden spikes in traffic, and if the infrastructure isn&amp;rsquo;t optimized, it can result in crashes or slow response times.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Fixing these problems in the right order produces compounding improvements — server stack first, then caching, then database, then frontend.&lt;/p&gt;&#xA;&lt;h3 id=&#34;step-1-server-stack-optimization&#34;&gt;&lt;strong&gt;Step 1: Server Stack Optimization&lt;/strong&gt;&lt;/h3&gt;&#xA;&lt;p&gt;The foundation of a high-performing WooCommerce site starts with an optimized server stack. Select a well-performing &lt;strong&gt;SSD&lt;/strong&gt; or &lt;strong&gt;NVME&lt;/strong&gt; VPS with at least 2-4 CPU cores and 4-8GB RAM. Providers like &lt;a href=&#34;https://hetzner.cloud/?ref=QhSbMAGCf6rN&#34;&gt;&lt;strong&gt;Hetzner&lt;/strong&gt;&lt;/a&gt; and &lt;strong&gt;Contabo&lt;/strong&gt; are highly recommended for their reliability and value.&lt;/p&gt;&#xA;&lt;p&gt;Sometimes, a well-configured bare-metal VPS for $40 can outperform a $600 AWS or Cloudways plan.&#xA;The default setup for many WordPress sites relies on Apache, but replacing Apache with NGINX can significantly improve scalability and resource efficiency.&#xA;NGINX is specifically designed to handle more concurrent connections, making it a superior choice for e-commerce platforms.&lt;/p&gt;&#xA;&lt;p&gt;In addition to switching to NGINX, it’s essential to install and configure PHP-FPM (FastCGI Process Manager). &lt;strong&gt;PHP-FPM&lt;/strong&gt; optimizes how PHP processes are handled, reducing server load and improving request handling efficiency.&lt;/p&gt;&#xA;&lt;p&gt;Furthermore, instead of relying on managed services like AWS or Cloudways—which often include rookie-level configurations and escalate expenses over time—opting for a barebone VPS is recommended.  Barebone VPS setups provide more control, allow for more advanced optimizations, and are free from unnecessary bloat that managed services may introduce.&lt;/p&gt;&#xA;&lt;h3 id=&#34;step-2-eliminate-inefficient-caching-solutions&#34;&gt;&lt;strong&gt;Step 2: Eliminate Inefficient Caching Solutions&lt;/strong&gt;&lt;/h3&gt;&#xA;&lt;p&gt;Caching is an important part of any performance optimization strategy, but not all caching solutions are created equal.&lt;/p&gt;&#xA;&lt;p&gt;Many WordPress caching modules, such as &lt;strong&gt;Redis Object Cache&lt;/strong&gt;, can actually cause more harm than good, can lead to CPU overload, making it inefficient for larger WooCommerce setups.&#xA;Instead of relying on these superficial solutions, it’s often more effective to perform fine-tuning of &lt;strong&gt;MySQL&lt;/strong&gt; database itself.&#xA;Properly optimized MySQL, combined with finely tuned server configurations, is capable of handling significantly more users without overburdening the CPU.&lt;/p&gt;&#xA;&lt;p&gt;A much better approach to caching is configuring &lt;strong&gt;NGINX FastCGI Cache&lt;/strong&gt; along with &lt;strong&gt;PHP OPCache&lt;/strong&gt;.&#xA;These configurations handle both dynamic and static content more efficiently, ensuring optimal server performance while reducing CPU overuse. Properly implemented caching mechanisms can significantly enhance your WooCommerce site’s overall performance.&lt;/p&gt;&#xA;&lt;h3 id=&#34;step-3-database-optimization&#34;&gt;&lt;strong&gt;Step 3: Database Optimization&lt;/strong&gt;&lt;/h3&gt;&#xA;&lt;p&gt;The database is the heart of your WooCommerce store, and when it’s not optimized, it can become a major bottleneck. WooCommerce databases can grow rapidly, particularly for stores with large product catalogs or extensive order histories. This leads to slower queries, higher server loads, and degraded performance across the board.&lt;/p&gt;&#xA;&lt;p&gt;To address these challenges, start with a step-by-step database cleanup process—remove redundant data, optimize indexing, and ensure that unnecessary data is archived or deleted. Installing and configuring the &lt;strong&gt;Index WP MySQL For Speed&lt;/strong&gt; plugin can also make a significant difference by improving database indexing and query efficiency. Additionally, implementing &lt;strong&gt;High-Performance Order Storage (HPOS)&lt;/strong&gt; helps streamline the handling of order-related data, boosting database response times.&lt;/p&gt;&#xA;&lt;p&gt;Finally, leveraging tools like &lt;strong&gt;mysqltuner&lt;/strong&gt; allows for continuous optimization of your MySQL configurations, ensuring that your database remains responsive as your store scales.&lt;/p&gt;&#xA;&lt;h3 id=&#34;step-4-frontend-optimization-techniques&#34;&gt;&lt;strong&gt;Step 4: Frontend Optimization Techniques&lt;/strong&gt;&lt;/h3&gt;&#xA;&lt;p&gt;A slow frontend can deter potential customers before they even interact with your products. Frontend optimization focuses on ensuring that users experience fast load times and seamless navigation. To achieve this:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Minify CSS and JavaScript&lt;/strong&gt;: Minify your CSS and JavaScript files to reduce their size and, consequently, the time it takes for the browser to load them.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Lazy Load Images&lt;/strong&gt;: Implement lazy loading for images so that they only load as users scroll down the page. This helps reduce the initial load time, improving the perceived speed of your website.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Use the Breeze Module and JavaScript Load Delay&lt;/strong&gt;: For plugin-heavy WooCommerce projects, using the &lt;strong&gt;Breeze&lt;/strong&gt; module along with JavaScript Load Delay can significantly enhance PageSpeed scores. These tools help reduce render-blocking scripts, optimize the loading of external JavaScript, and improve the overall user experience.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Defer Non-Essential JavaScript&lt;/strong&gt;: Deferring non-essential JavaScript helps prioritize the rendering of above-the-fold content, improving the speed at which users perceive the page to load.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;step-5-high-load-testing-and-performance-verification&#34;&gt;&lt;strong&gt;Step 5: High-Load Testing and Performance Verification&lt;/strong&gt;&lt;/h3&gt;&#xA;&lt;p&gt;To ensure your optimizations work effectively under real-world conditions, it&amp;rsquo;s essential to conduct high-load testing.&#xA;Tools like &lt;strong&gt;Loader.io&lt;/strong&gt; allow you to simulate heavy traffic and verify whether both NGINX cached and non-cached traffic scenarios perform well. High-load testing provides insights into potential bottlenecks that might only be noticeable during peak times.&lt;/p&gt;&#xA;&lt;p&gt;Once load testing is complete, use &lt;strong&gt;Google PageSpeed Insights&lt;/strong&gt; to identify additional areas for improvement. For example, WooCommerce often loads payment-related scripts on all pages, even those without checkout functionality. By analyzing these scripts and modifying &lt;code&gt;functions.php&lt;/code&gt;, you can ensure that these non-essential scripts are only loaded where necessary, reducing load times and improving overall performance.&lt;/p&gt;&#xA;&lt;p&gt;Performance optimization is ongoing, not a one-time project. As your catalogue grows, traffic patterns shift, and plugins update, the configuration that worked at 10,000 monthly orders may not work at 100,000. Set up regular Lighthouse CI checks in your deployment pipeline and watch Core Web Vitals on real user traffic — not just lab scores.&lt;/p&gt;&#xA;&lt;p&gt;If your WooCommerce store is underperforming and you need a diagnosis, &lt;a href=&#34;mailto:hello@cimpleo.com&#34;&gt;write to us at hello@cimpleo.com&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;If you&amp;rsquo;re weighing WooCommerce against a custom-built solution, read our comparison of &lt;a href=&#34;https://cimpleo.com/blog/custom-ecommerce-vs-platforms/&#34;&gt;custom eCommerce vs platforms&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Need ongoing performance, security, or DDoS protection for your WooCommerce store?&lt;/strong&gt; We offer a full maintenance and protection service — performance tuning, WAF, L7 DDoS and order flood defence, and 24/7 uptime monitoring. &lt;a href=&#34;https://cimpleo.com/services/woocommerce/&#34;&gt;See our WooCommerce support service →&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Building a larger store or marketplace beyond WooCommerce? See our &lt;a href=&#34;https://cimpleo.com/services/ecommerce/&#34;&gt;eCommerce development service&lt;/a&gt;.&lt;/p&gt;&#xA;</content:encoded>
    </item>
    <item>
      <title>RAG vs Fine-Tuning: Which One Solves Your Problem</title>
      <link>https://cimpleo.com/blog/rag-vs-finetuning/</link>
      <pubDate>Mon, 23 Mar 2026 00:00:00 +0000</pubDate>
      <guid isPermaLink="true">https://cimpleo.com/blog/rag-vs-finetuning/</guid>
      <description>Most teams reach for fine-tuning when they don&#39;t need it. How to tell RAG and fine-tuning apart, when each wins, and how to decide in five minutes.</description>
      <content:encoded>&lt;img src=&#34;https://cimpleo.com/uploads/rag-vs-finetuning-hero.svg&#34; alt=&#34;RAG vs Fine-Tuning comparison diagram&#34; class=&#34;img-fluid lazyload&#34;&gt;&#xA;&lt;p&gt;Every team building an LLM product hits this fork in the road: should we retrieve relevant information at runtime, or should we train the model to know it already? The question sounds technical. The answer is mostly practical — and most teams get it wrong by defaulting to fine-tuning when retrieval would have done the job in a fraction of the time and cost.&lt;/p&gt;&#xA;&lt;p&gt;Both approaches are legitimate. Most teams pick the wrong one for their situation. Here&amp;rsquo;s how to tell them apart.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-rag-actually-is&#34;&gt;What RAG Actually Is&lt;/h2&gt;&#xA;&lt;p&gt;RAG — Retrieval-Augmented Generation — doesn&amp;rsquo;t change the model. It changes what the model sees when it generates a response.&lt;/p&gt;&#xA;&lt;p&gt;At runtime, when a user asks a question, the system first searches a knowledge base for the most relevant chunks of text (using vector similarity search), then injects those chunks into the prompt as context. The LLM reads both the retrieved context and the question, and generates an answer grounded in what it just read.&lt;/p&gt;&#xA;&lt;img src=&#34;https://cimpleo.com/uploads/rag-architecture.svg&#34; alt=&#34;RAG architecture diagram&#34; class=&#34;img-fluid lazyload&#34;&gt;&#xA;&lt;p&gt;The model itself — GPT-4, Claude, LLaMA, whatever you&amp;rsquo;re using — is never touched. You can swap the underlying model out entirely without rebuilding your knowledge pipeline. The knowledge lives in your document store, not in the model&amp;rsquo;s weights.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;What RAG is good at:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Answering questions from a specific corpus (product docs, legal contracts, internal policies, support history)&lt;/li&gt;&#xA;&lt;li&gt;Keeping knowledge current — update the document store, the answers update automatically&lt;/li&gt;&#xA;&lt;li&gt;Providing traceable, citeable answers (you know exactly which source the model used)&lt;/li&gt;&#xA;&lt;li&gt;Working with private data that can&amp;rsquo;t be included in public model training&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;strong&gt;What RAG is not:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;A way to change how the model reasons, writes, or behaves&lt;/li&gt;&#xA;&lt;li&gt;A solution for tasks where no relevant document exists to retrieve&lt;/li&gt;&#xA;&lt;li&gt;A replacement for structured databases when you need exact, reliable data retrieval&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;what-fine-tuning-actually-is&#34;&gt;What Fine-Tuning Actually Is&lt;/h2&gt;&#xA;&lt;p&gt;Fine-tuning continues training a pre-trained model on your own dataset. You&amp;rsquo;re adjusting the model&amp;rsquo;s weights so it learns patterns, behaviours, or knowledge that the base model doesn&amp;rsquo;t have.&lt;/p&gt;&#xA;&lt;p&gt;This takes GPU time (hours to days depending on model size and dataset), a labelled training dataset (typically 1,000–100,000 examples), and careful evaluation to avoid degrading the model&amp;rsquo;s general capabilities while improving its domain-specific performance.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;What fine-tuning is good at:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Changing the model&amp;rsquo;s output style — more concise, more formal, structured output formats (always respond as JSON, always follow a specific template)&lt;/li&gt;&#xA;&lt;li&gt;Teaching a specific task the base model handles poorly — medical coding, legal clause extraction, niche classification tasks&lt;/li&gt;&#xA;&lt;li&gt;Removing capabilities you don&amp;rsquo;t want — a customer service bot that stays strictly on-topic&lt;/li&gt;&#xA;&lt;li&gt;Reducing prompt size — once the model knows your format well, you don&amp;rsquo;t need to re-explain it every time&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;strong&gt;What fine-tuning is not:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;A way to inject new knowledge. A model fine-tuned on last year&amp;rsquo;s product catalogue will not know about this year&amp;rsquo;s products unless you retrain it. Fine-tuning teaches &lt;em&gt;how&lt;/em&gt; to respond, not &lt;em&gt;what&lt;/em&gt; is currently true.&lt;/li&gt;&#xA;&lt;li&gt;A one-time project. As your product or domain evolves, the model needs to be retrained. This has ongoing cost and maintenance implications.&lt;/li&gt;&#xA;&lt;li&gt;A substitute for RAG when the real problem is knowledge access.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;the-core-difference-in-plain-terms&#34;&gt;The Core Difference, in Plain Terms&lt;/h2&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th&gt;&lt;/th&gt;&#xA;          &lt;th&gt;RAG&lt;/th&gt;&#xA;          &lt;th&gt;Fine-Tuning&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;strong&gt;What changes&lt;/strong&gt;&lt;/td&gt;&#xA;          &lt;td&gt;The context provided at runtime&lt;/td&gt;&#xA;          &lt;td&gt;The model&amp;rsquo;s weights&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;strong&gt;Knowledge updates&lt;/strong&gt;&lt;/td&gt;&#xA;          &lt;td&gt;Instant (update the doc store)&lt;/td&gt;&#xA;          &lt;td&gt;Requires retraining&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;strong&gt;Cost&lt;/strong&gt;&lt;/td&gt;&#xA;          &lt;td&gt;Inference cost + vector search&lt;/td&gt;&#xA;          &lt;td&gt;GPU training + inference&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;strong&gt;Use when&lt;/strong&gt;&lt;/td&gt;&#xA;          &lt;td&gt;You need specific facts&lt;/td&gt;&#xA;          &lt;td&gt;You need different behaviour&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;strong&gt;Answers are traceable&lt;/strong&gt;&lt;/td&gt;&#xA;          &lt;td&gt;Yes — to source chunks&lt;/td&gt;&#xA;          &lt;td&gt;No&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;strong&gt;Data privacy&lt;/strong&gt;&lt;/td&gt;&#xA;          &lt;td&gt;Private docs, never leave your infra&lt;/td&gt;&#xA;          &lt;td&gt;Training data exposure risk&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;p&gt;The mistake most teams make: they see wrong answers about their product and conclude the model &amp;ldquo;doesn&amp;rsquo;t know enough,&amp;rdquo; so they fine-tune it. The model was wrong because it had no access to the right source, not because of missing knowledge. Fine-tuning doesn&amp;rsquo;t fix that. The next time a product detail changes, it&amp;rsquo;s wrong again.&lt;/p&gt;&#xA;&lt;p&gt;RAG fixes the access problem. Fine-tuning fixes the behaviour problem.&lt;/p&gt;&#xA;&lt;h2 id=&#34;when-rag-wins&#34;&gt;When RAG Wins&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;Internal knowledge assistants.&lt;/strong&gt; A support team that needs to query 10,000 support tickets, three policy documents, and six product manuals simultaneously. The knowledge is too large to fit in context. RAG retrieves the three most relevant chunks and the model answers accurately.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Frequently changing information.&lt;/strong&gt; Pricing, product specs, regulations, case law. Anything that changes more often than you want to retrain a model. Update the document store and the answers are immediately current.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Private or sensitive data.&lt;/strong&gt; Patient records, legal documents, financial data. You can run RAG entirely within your own infrastructure — the data never touches a cloud training pipeline.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Customer-facing Q&amp;amp;A on a large catalogue.&lt;/strong&gt; eCommerce, SaaS support, internal HR portals. The model doesn&amp;rsquo;t need to reason differently. It needs access to the right documents.&lt;/p&gt;&#xA;&lt;h2 id=&#34;when-fine-tuning-wins&#34;&gt;When Fine-Tuning Wins&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;Consistent structured output.&lt;/strong&gt; If every response needs to follow a specific JSON schema, a specific report format, or a clinical note template, fine-tuning teaches the model to produce that format reliably — so you don&amp;rsquo;t need to engineer a ten-line format instruction into every prompt.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Domain-specific reasoning.&lt;/strong&gt; A model that needs to interpret radiology reports, classify insurance claims, or write legally precise contract clauses benefits from fine-tuning on high-quality domain examples. The model learns the vocabulary and reasoning patterns of the domain.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Reducing hallucinations on a specific narrow task.&lt;/strong&gt; Fine-tuning on carefully curated examples of correct outputs for a well-defined task produces more reliable results than prompting alone.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Replacing a large prompt with learned behaviour.&lt;/strong&gt; If you have a 2,000-token system prompt explaining how the model should behave, and you&amp;rsquo;re making thousands of API calls per day, fine-tuning that behaviour into the model reduces cost and latency significantly.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-decision-framework&#34;&gt;The Decision Framework&lt;/h2&gt;&#xA;&lt;p&gt;Use this to decide in under five minutes:&lt;/p&gt;&#xA;&lt;img src=&#34;https://cimpleo.com/uploads/rag-vs-finetuning-decision.svg&#34; alt=&#34;Decision flowchart: RAG or Fine-Tuning?&#34; class=&#34;img-fluid lazyload&#34;&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;strong&gt;Does the model need access to specific facts, documents, or data?&lt;/strong&gt; → Start with RAG.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Does it need to change how it responds — tone, style, format, task type?&lt;/strong&gt; → Fine-tuning is worth evaluating.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Does the data change frequently or need to stay private?&lt;/strong&gt; → RAG, regardless of what else you need.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Neither?&lt;/strong&gt; → Try prompt engineering first. It&amp;rsquo;s free and often sufficient.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;For complex production systems — enterprise knowledge bases, multi-domain assistants, high-accuracy professional tools — the answer is usually &lt;em&gt;both&lt;/em&gt;: a fine-tuned model that behaves correctly for your domain, with RAG providing current, authoritative context at inference time. But get RAG working first. Fine-tune later if the behaviour still isn&amp;rsquo;t right.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-hybrid-approach&#34;&gt;The Hybrid Approach&lt;/h2&gt;&#xA;&lt;p&gt;The most capable production LLM systems combine both:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;strong&gt;Fine-tune&lt;/strong&gt; the base model on domain-specific examples to get the output format, reasoning style, and task focus right.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Add RAG&lt;/strong&gt; to provide current, specific knowledge at inference time.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;This is how enterprise AI assistants are typically built when both accuracy and behaviour matter. The fine-tuned model knows &lt;em&gt;how&lt;/em&gt; to answer. RAG provides &lt;em&gt;what&lt;/em&gt; to answer from.&lt;/p&gt;&#xA;&lt;p&gt;Start with RAG + a strong base model. If the behaviour (format, style, task focus) is still wrong after good prompting, add fine-tuning. In the majority of business use cases, you&amp;rsquo;ll get 90% of the way there with RAG alone.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-to-avoid&#34;&gt;What to Avoid&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;Fine-tuning as the first response to &amp;ldquo;wrong answers.&amp;rdquo;&lt;/strong&gt; Diagnose the problem first. Wrong answers usually mean missing context (RAG problem) or poor reasoning (prompting or fine-tuning problem). They are different problems with different solutions.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;RAG as a replacement for data quality.&lt;/strong&gt; If your documents are poorly written, contradictory, or out of date, RAG will retrieve bad context and the model will produce bad answers. Garbage in, garbage out — the model is not at fault.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Assuming fine-tuning is a one-time cost.&lt;/strong&gt; It isn&amp;rsquo;t. Every time your domain, product, or requirements evolve, you&amp;rsquo;re back in the training loop.&lt;/p&gt;&#xA;&lt;p&gt;Building an LLM feature and not sure which approach fits your use case? &lt;a href=&#34;mailto:hello@cimpleo.com&#34;&gt;Write to us at hello@cimpleo.com&lt;/a&gt;. We&amp;rsquo;ll tell you what we&amp;rsquo;d recommend and what it would take to build it.&lt;/p&gt;&#xA;&lt;p&gt;CimpleO&amp;rsquo;s &lt;a href=&#34;https://cimpleo.com/services/ai-ml-development/&#34;&gt;AI/ML development team&lt;/a&gt; ships RAG pipelines, fine-tuned models, and &lt;a href=&#34;https://cimpleo.com/services/chatgpt/&#34;&gt;LLM integrations&lt;/a&gt; for production. If you know which approach you need and want senior engineers to build it, &lt;a href=&#34;mailto:hello@cimpleo.com&#34;&gt;get in touch&lt;/a&gt;.&lt;/p&gt;&#xA;</content:encoded>
    </item>
    <item>
      <title>CimpleO: Top AI &amp; ML Company 2026 — Clutch</title>
      <link>https://cimpleo.com/blog/cimpleo-top-ai-ml-company-2026-clutch/</link>
      <pubDate>Mon, 23 Mar 2026 00:00:00 +0000</pubDate>
      <guid isPermaLink="true">https://cimpleo.com/blog/cimpleo-top-ai-ml-company-2026-clutch/</guid>
      <description>CimpleO recognised as a top AI and Machine Learning company by Clutch in 2026 across Hong Kong and Thailand, plus a first-ever Computer Vision award.</description>
      <content:encoded>&lt;p&gt;CimpleO has been recognised by Clutch as a leading &lt;strong&gt;Artificial Intelligence&lt;/strong&gt; and &lt;strong&gt;Machine Learning&lt;/strong&gt; company in 2026 — across both Hong Kong and Thailand. We also received a first-ever recognition as a &lt;strong&gt;Top Computer Vision Company&lt;/strong&gt; in Hong Kong, marking a meaningful expansion of the capabilities our clients have come to rely on.&lt;/p&gt;&#xA;&lt;p&gt;Six awards across AI, ML, and Computer Vision in a single year signals something we have seen building in our own project work: the demand for applied intelligence is no longer a future trend — it is the current requirement.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-awards&#34;&gt;The Awards&lt;/h2&gt;&#xA;&lt;p&gt;In 2026, Clutch recognised CimpleO in the following AI-related categories:&lt;/p&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th&gt;Award&lt;/th&gt;&#xA;          &lt;th&gt;Market&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Top Artificial Intelligence Company&lt;/td&gt;&#xA;          &lt;td&gt;Hong Kong&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Top Artificial Intelligence Company&lt;/td&gt;&#xA;          &lt;td&gt;Thailand&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Top Machine Learning Company&lt;/td&gt;&#xA;          &lt;td&gt;Hong Kong&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Top Machine Learning Company&lt;/td&gt;&#xA;          &lt;td&gt;Thailand&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Top Computer Vision Company&lt;/td&gt;&#xA;          &lt;td&gt;Hong Kong&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;p&gt;Each of these designations is backed by verified client reviews and independently assessed service delivery scores — not nominations or self-reported achievements.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-we-build&#34;&gt;What We Build&lt;/h2&gt;&#xA;&lt;p&gt;Our AI and ML work spans several applied domains:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Document intelligence&lt;/strong&gt; — extraction, classification, and processing of structured and unstructured documents at scale, integrated into enterprise workflows.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Computer vision systems&lt;/strong&gt; — object detection, defect identification, and visual inspection pipelines deployed in manufacturing, retail, and logistics environments.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Predictive analytics&lt;/strong&gt; — demand forecasting, anomaly detection, and churn prediction models built on client data and integrated with their existing platforms.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;LLM-powered applications&lt;/strong&gt; — retrieval-augmented generation (RAG) systems, domain-specific assistants, and AI-enhanced internal tools built on top of leading foundation models.&lt;/p&gt;&#xA;&lt;p&gt;What ties these together is an engineering-first approach. We are not a consultancy that recommends AI — we are a team that builds, deploys, and maintains it.&lt;/p&gt;&#xA;&lt;h2 id=&#34;computer-vision-a-first-recognition&#34;&gt;Computer Vision: A First Recognition&lt;/h2&gt;&#xA;&lt;p&gt;The Computer Vision award in Hong Kong is particularly meaningful because it reflects work that has grown steadily in scope over recent years. Computer vision sits at the intersection of hardware and intelligence — combining IoT sensors, edge compute, and ML inference in ways that require deep cross-domain expertise.&lt;/p&gt;&#xA;&lt;p&gt;Receiving an independent recognition in this specific category, for the first time, validates the investment our team has made in building genuine depth here.&lt;/p&gt;&#xA;&lt;h2 id=&#34;why-it-matters-to-our-clients&#34;&gt;Why It Matters to Our Clients&lt;/h2&gt;&#xA;&lt;p&gt;These awards are not vanity metrics. For clients evaluating technology partners, Clutch rankings offer an independently verified shortlist of companies that have delivered results and earned the trust of their customers. Being recognised across multiple AI/ML categories — in two different geographic markets — means our clients in Hong Kong and Thailand have publicly, consistently vouched for the quality of our work.&lt;/p&gt;&#xA;&lt;p&gt;That is the foundation we intend to keep building on.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://clutch.co/profile/cimpleo#highlights&#34;&gt;See our Clutch profile&lt;/a&gt; or &lt;a href=&#34;mailto:hello@cimpleo.com&#34;&gt;reach out directly&lt;/a&gt; if you are working on an AI project and want to discuss what is possible.&lt;/p&gt;&#xA;&lt;h2 id=&#34;about-clutch&#34;&gt;About Clutch&lt;/h2&gt;&#xA;&lt;p&gt;Clutch is the leading global marketplace for B2B service providers, used by over one million business leaders each month to find and evaluate technology partners through verified client reviews.&lt;/p&gt;&#xA;</content:encoded>
    </item>
    <item>
      <title>How to Choose a Tech Stack for Your MVP</title>
      <link>https://cimpleo.com/blog/tech-stack-mvp/</link>
      <pubDate>Fri, 20 Mar 2026 00:00:00 +0000</pubDate>
      <guid isPermaLink="true">https://cimpleo.com/blog/tech-stack-mvp/</guid>
      <description>The framework for picking a tech stack that ships fast, doesn&#39;t box you in, and actually matches your team.</description>
      <content:encoded>&lt;img src=&#34;https://cimpleo.com/uploads/tech-stack-mvp-hero.svg&#34; alt=&#34;Tech stack decision framework for MVPs&#34; class=&#34;img-fluid lazyload&#34;&gt;&#xA;&lt;p&gt;At some point in every early-stage project, someone asks: &amp;ldquo;What tech stack should we use?&amp;rdquo; The question sounds pragmatic. It usually isn&amp;rsquo;t. Most of the time it&amp;rsquo;s a disguised version of a different question: &amp;ldquo;What&amp;rsquo;s the best stack out there?&amp;rdquo; And that&amp;rsquo;s the wrong question entirely.&lt;/p&gt;&#xA;&lt;p&gt;There is no best stack. There is only the right stack for your team, your timeline, your hiring situation, and the nature of the problem you&amp;rsquo;re solving. Everything else is noise.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-question-everyone-asks-wrong&#34;&gt;The Question Everyone Asks Wrong&lt;/h2&gt;&#xA;&lt;p&gt;Type &amp;ldquo;best tech stack for startup&amp;rdquo; into any forum and you&amp;rsquo;ll get 40 passionate answers, each contradicting the last. Rails vs Django vs Next.js vs Remix. PostgreSQL vs MongoDB. Monolith vs microservices.&lt;/p&gt;&#xA;&lt;p&gt;These debates are mostly useless at MVP stage. The stack that wins is the one your team ships confidently and quickly — not the one that wins Twitter arguments.&lt;/p&gt;&#xA;&lt;p&gt;The right framing isn&amp;rsquo;t &amp;ldquo;what&amp;rsquo;s the best stack.&amp;rdquo; It&amp;rsquo;s &amp;ldquo;what stack minimises our time from idea to deployed, working software, given these specific constraints?&amp;rdquo;&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-three-variables-that-actually-matter&#34;&gt;The Three Variables That Actually Matter&lt;/h2&gt;&#xA;&lt;h3 id=&#34;1-team-familiarity&#34;&gt;1. Team Familiarity&lt;/h3&gt;&#xA;&lt;p&gt;This one is decisive and it is consistently underweighted. A team that knows Rails deeply will build a better MVP faster in Rails than a team that half-knows Node. The productivity gap between &amp;ldquo;know it well&amp;rdquo; and &amp;ldquo;learning it&amp;rdquo; is enormous at the beginning of a project when you&amp;rsquo;re also figuring out the product, the domain, and the users simultaneously.&lt;/p&gt;&#xA;&lt;p&gt;If your team has shipped production systems in a technology, that technology has a massive advantage over everything else on this list.&lt;/p&gt;&#xA;&lt;h3 id=&#34;2-hiring-pool&#34;&gt;2. Hiring Pool&lt;/h3&gt;&#xA;&lt;p&gt;Your MVP becomes a V1 becomes a product with a team around it. The stack you pick in week one is the stack your first three engineering hires will need to work in. Picking a framework that has 50 developers in your market doesn&amp;rsquo;t just create a future hiring problem — it creates a current one, because you&amp;rsquo;re building toward a team that will be hard to grow.&lt;/p&gt;&#xA;&lt;p&gt;React, TypeScript, Python, PostgreSQL — these have enormous hiring pools. Framework-of-the-month options often don&amp;rsquo;t.&lt;/p&gt;&#xA;&lt;h3 id=&#34;3-problem-domain-fit&#34;&gt;3. Problem Domain Fit&lt;/h3&gt;&#xA;&lt;p&gt;Some stacks fit certain problem types naturally. Real-time systems have different requirements than batch-processing pipelines. Mobile apps are different from browser tools. IoT firmware is different from API-heavy SaaS. At MVP stage you won&amp;rsquo;t have the load to expose performance differences. The question is whether the ecosystem around a stack has the libraries, patterns, and examples relevant to your problem.&lt;/p&gt;&#xA;&lt;h2 id=&#34;where-framework-debates-waste-your-time&#34;&gt;Where Framework Debates Waste Your Time&lt;/h2&gt;&#xA;&lt;p&gt;At MVP stage, the difference between React and Vue is irrelevant. The difference between FastAPI and Flask is irrelevant. The difference between Tailwind and Bootstrap is irrelevant.&lt;/p&gt;&#xA;&lt;p&gt;These debates consume real energy that should be going toward shipping. If your team is spending more than an afternoon on frontend framework selection, something has gone wrong. Pick the one your best frontend engineer knows best. Move on.&lt;/p&gt;&#xA;&lt;p&gt;The same goes for deployment platform, CI tooling, and component library choices. Default to what your team uses. There is no decision here that can&amp;rsquo;t be changed later, and the cost of changing is much lower than the cost of extended pre-build analysis.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-stack-decisions-that-do-matter&#34;&gt;The Stack Decisions That DO Matter&lt;/h2&gt;&#xA;&lt;p&gt;Two decisions have genuine downstream consequences that are harder to undo:&lt;/p&gt;&#xA;&lt;h3 id=&#34;sql-vs-nosql&#34;&gt;SQL vs NoSQL&lt;/h3&gt;&#xA;&lt;p&gt;This is worth thinking about carefully — not because one is better, but because the data model you pick at the start tends to persist. Relational databases (PostgreSQL, MySQL) give you joins, transactions, and strong consistency. They&amp;rsquo;re appropriate for most business applications: user accounts, orders, invoices, anything where relationships between entities matter.&lt;/p&gt;&#xA;&lt;p&gt;Document databases (MongoDB, Firestore) make sense when your data is genuinely document-shaped and schema varies significantly between records. They&amp;rsquo;re often chosen for the wrong reasons (perceived speed or flexibility) and cause pain later when you need query patterns that relational databases handle naturally.&lt;/p&gt;&#xA;&lt;p&gt;Default to PostgreSQL unless you have a specific reason not to.&lt;/p&gt;&#xA;&lt;h3 id=&#34;monolith-vs-serverlessmicroservices&#34;&gt;Monolith vs Serverless/Microservices&lt;/h3&gt;&#xA;&lt;p&gt;For an MVP, start with a monolith. The people who built Shopify, GitHub, and Basecamp all say the same thing looking back. A monolith is simpler to develop, simpler to debug, simpler to deploy, and simpler to change.&lt;/p&gt;&#xA;&lt;p&gt;Microservices and serverless architectures introduce operational complexity (distributed tracing, network failure modes, cross-service contracts) that is hard to manage even with experienced teams. At MVP stage, you don&amp;rsquo;t have the scale problems that microservices solve. You have speed problems. A monolith solves speed problems.&lt;/p&gt;&#xA;&lt;h2 id=&#34;a-decision-matrix&#34;&gt;A Decision Matrix&lt;/h2&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th&gt;Signal&lt;/th&gt;&#xA;          &lt;th&gt;Recommendation&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Team has production experience with framework X&lt;/td&gt;&#xA;          &lt;td&gt;Use framework X&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Greenfield, team split on options&lt;/td&gt;&#xA;          &lt;td&gt;Pick the option with the largest hiring pool&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Real-time features (chat, notifications)&lt;/td&gt;&#xA;          &lt;td&gt;Node.js or Go back-end; weigh this against team familiarity&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Data-heavy, relational entities&lt;/td&gt;&#xA;          &lt;td&gt;PostgreSQL as default&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Flexible schema, document-shaped data&lt;/td&gt;&#xA;          &lt;td&gt;MongoDB — only if schema genuinely varies&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Needs to grow to a team quickly&lt;/td&gt;&#xA;          &lt;td&gt;&lt;a href=&#34;https://cimpleo.com/hire/typescript/&#34;&gt;TypeScript&lt;/a&gt;, Python, or Go — wide talent pools&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;MVP needs to ship in under 6 weeks&lt;/td&gt;&#xA;          &lt;td&gt;Maximise team familiarity over all other factors&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Long-term product, not throwaway&lt;/td&gt;&#xA;          &lt;td&gt;Monolith to start; split later if clear boundaries emerge&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;h2 id=&#34;common-mistakes&#34;&gt;Common Mistakes&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;Choosing for your CV.&lt;/strong&gt; &amp;ldquo;I&amp;rsquo;ve always wanted to learn Rust&amp;rdquo; is a valid personal goal. It is not a valid reason to build a client&amp;rsquo;s MVP in Rust. The MVP isn&amp;rsquo;t a learning project — it&amp;rsquo;s a product with a user on the other end.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Choosing for hype.&lt;/strong&gt; A new framework that just hit 10k GitHub stars may be genuinely good. It also has minimal production battle-testing, a small community, and limited Stack Overflow coverage. These matter when you hit an obscure bug at 11pm before a launch.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Over-engineering for scale you don&amp;rsquo;t have.&lt;/strong&gt; You don&amp;rsquo;t need Redis caching for a user base of 200. You don&amp;rsquo;t need a Kubernetes cluster for traffic that a single VPS could handle with room to spare. Every piece of infrastructure you add is something you need to maintain, monitor, and debug. Complexity is a cost.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Reacting to theoretical future problems.&lt;/strong&gt; &amp;ldquo;But what if we get 10 million users?&amp;rdquo; You won&amp;rsquo;t — not yet. And if you do, you&amp;rsquo;ll have the resources to fix infrastructure problems then. The companies that scale successfully almost universally started simpler than they thought they needed to.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-to-optimise-for-at-mvp-stage&#34;&gt;What to Optimise For at MVP Stage&lt;/h2&gt;&#xA;&lt;p&gt;Three things, in this order:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Speed to production.&lt;/strong&gt; The faster you ship, the faster you learn whether you&amp;rsquo;re building the right thing. Every week of pre-build analysis is a week where your assumptions go untested.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Debuggability.&lt;/strong&gt; Things will break. Choose a stack where broken things are easy to find and fix — good error messages, mature logging tooling, a large community that&amp;rsquo;s seen your problem before.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Team confidence.&lt;/strong&gt; A team that&amp;rsquo;s comfortable with their tools moves faster, writes cleaner code, and catches problems earlier. Confidence isn&amp;rsquo;t about familiarity only — it&amp;rsquo;s also about using tools that have good documentation, sensible defaults, and clear conventions.&lt;/p&gt;&#xA;&lt;p&gt;If you&amp;rsquo;re optimising for these three things, the stack question largely answers itself: use what your team knows, default to boring technology choices with large communities, and avoid novelty for its own sake.&lt;/p&gt;&#xA;&lt;p&gt;The best MVP stack is the one that ships.&lt;/p&gt;&#xA;&lt;p&gt;Building an MVP and not sure where to start? CimpleO&amp;rsquo;s &lt;a href=&#34;https://cimpleo.com/services/mvp-development/&#34;&gt;MVP development team&lt;/a&gt; scopes the stack alongside the product, then builds it. &lt;a href=&#34;mailto:hello@cimpleo.com&#34;&gt;Write to us at hello@cimpleo.com&lt;/a&gt; to get started.&lt;/p&gt;&#xA;</content:encoded>
    </item>
    <item>
      <title>CimpleO Earns Multiple Clutch UK Awards 2026</title>
      <link>https://cimpleo.com/blog/cimpleo-earns-multiple-clutch-uk-awards-2026/</link>
      <pubDate>Tue, 17 Mar 2026 00:00:00 +0000</pubDate>
      <guid isPermaLink="true">https://cimpleo.com/blog/cimpleo-earns-multiple-clutch-uk-awards-2026/</guid>
      <description>CimpleO earns 9 Clutch awards across the UK in 2026 — IoT, Drupal, Next.js, Node.js, C++, and WordPress across London, Cambridge, and England.</description>
      <content:encoded>&lt;p&gt;In 2026, Clutch recognised CimpleO with &lt;strong&gt;seven awards across the United Kingdom&lt;/strong&gt; — covering IoT, web development, software engineering, Drupal, Node.js, WordPress, and C++ development in London, Cambridge, England, and the UK broadly.&lt;/p&gt;&#xA;&lt;p&gt;For a company headquartered in Asia, earning this kind of recognition in the British market reflects something real: a growing number of UK-based clients trusting us with serious technical work, and taking the time to document that trust publicly.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-full-uk-recognition&#34;&gt;The Full UK Recognition&lt;/h2&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th&gt;Award&lt;/th&gt;&#xA;          &lt;th&gt;Location&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Top IoT Company&lt;/td&gt;&#xA;          &lt;td&gt;United Kingdom&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Top IoT Company&lt;/td&gt;&#xA;          &lt;td&gt;London&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Top IoT Company&lt;/td&gt;&#xA;          &lt;td&gt;Cambridge&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Top Drupal Developers&lt;/td&gt;&#xA;          &lt;td&gt;United Kingdom&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Top Next.js Developer&lt;/td&gt;&#xA;          &lt;td&gt;United Kingdom&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Top Node.js Developers&lt;/td&gt;&#xA;          &lt;td&gt;England&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Top C++ Development&lt;/td&gt;&#xA;          &lt;td&gt;England&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Top WordPress Developers&lt;/td&gt;&#xA;          &lt;td&gt;England&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Top WordPress Developers&lt;/td&gt;&#xA;          &lt;td&gt;London&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;p&gt;Nine recognitions in total — across five technology categories and four distinct UK locations.&lt;/p&gt;&#xA;&lt;h2 id=&#34;london-and-cambridge-two-different-markets&#34;&gt;London and Cambridge: Two Different Markets&lt;/h2&gt;&#xA;&lt;p&gt;London and Cambridge represent different types of technical demand, and we have found ourselves serving both.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;London&lt;/strong&gt; clients tend to come from financial services, media, retail, and enterprise SaaS — where the priorities are scalability, integrations, and delivery speed. Our work here spans complex web platforms, Drupal-based content infrastructure, and Node.js backend services.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Cambridge&lt;/strong&gt; is deep-tech territory — startups and spinouts working on hardware, sensors, and connected systems. IoT recognition in Cambridge specifically reflects work with clients building products where software and physical devices need to work together reliably at low latency and in constrained environments.&lt;/p&gt;&#xA;&lt;h2 id=&#34;why-the-uk&#34;&gt;Why the UK?&lt;/h2&gt;&#xA;&lt;p&gt;The UK has a mature appetite for outsourced technical expertise. British companies — from early-stage startups to established enterprises — are experienced at working with distributed engineering teams when the quality bar is met. What has driven our UK growth is straightforward: consistent delivery and honest communication.&lt;/p&gt;&#xA;&lt;p&gt;We do not win UK clients by being the cheapest option. We win them by being the team that actually builds what was agreed, on time, and maintains it properly afterward.&lt;/p&gt;&#xA;&lt;h2 id=&#34;c-and-drupal-depth-in-specific-stacks&#34;&gt;C++ and Drupal: Depth in Specific Stacks&lt;/h2&gt;&#xA;&lt;p&gt;Two of the UK awards deserve specific mention because they reflect genuine technical depth rather than broad positioning.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;C++ development in England&lt;/strong&gt; — we build embedded firmware, real-time systems, and performance-critical applications. C++ is not a general-purpose claim; the clients who need it know exactly what they are asking for.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Drupal development across the UK&lt;/strong&gt; — we have been building and maintaining Drupal platforms since Drupal 7. For content-heavy organisations — publishers, universities, government agencies — Drupal done properly is still the right tool. Our UK Drupal clients include complex multi-site builds with custom modules, editorial workflows, and headless frontends.&lt;/p&gt;&#xA;&lt;h2 id=&#34;looking-forward&#34;&gt;Looking Forward&lt;/h2&gt;&#xA;&lt;p&gt;Seven UK awards in a single year is a high-water mark for CimpleO in this market. It reflects client relationships that have deepened over time and a track record we are proud of.&lt;/p&gt;&#xA;&lt;p&gt;If you are based in the UK and want to discuss a project — whether it is IoT hardware, a Drupal platform, a Next.js application, or anything in between — &lt;a href=&#34;mailto:hello@cimpleo.com&#34;&gt;we would like to hear from you&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://clutch.co/profile/cimpleo#highlights&#34;&gt;View our Clutch profile&lt;/a&gt; to read the reviews behind these recognitions.&lt;/p&gt;&#xA;&lt;h2 id=&#34;about-clutch&#34;&gt;About Clutch&lt;/h2&gt;&#xA;&lt;p&gt;Clutch is the world&amp;rsquo;s leading B2B ratings and reviews platform. Location-based rankings reflect the top-performing companies in each service category as assessed by verified client feedback within that specific market.&lt;/p&gt;&#xA;</content:encoded>
    </item>
    <item>
      <title>The Real Cost of Technical Debt</title>
      <link>https://cimpleo.com/blog/real-cost-technical-debt/</link>
      <pubDate>Sat, 14 Mar 2026 00:00:00 +0000</pubDate>
      <guid isPermaLink="true">https://cimpleo.com/blog/real-cost-technical-debt/</guid>
      <description>Technical debt is rarely the code itself. Here&#39;s how to measure it, when to pay it off, and when to leave it alone.</description>
      <content:encoded>&lt;img src=&#34;https://cimpleo.com/uploads/technical-debt-hero.svg&#34; alt=&#34;Technical debt quadrant diagram&#34; class=&#34;img-fluid lazyload&#34;&gt;&#xA;&lt;p&gt;Ask a room of engineers what technical debt is and you&amp;rsquo;ll get a dozen different definitions. Hacky code. Missing tests. Outdated dependencies. &amp;ldquo;Everything the previous team wrote.&amp;rdquo; The word gets applied to so many different things that it&amp;rsquo;s lost most of its practical meaning.&lt;/p&gt;&#xA;&lt;p&gt;The original definition, from Ward Cunningham in 1992, was more precise and more useful: technical debt is the gap between the design you shipped and the design you now know would be better. It&amp;rsquo;s the cost of decisions made under constraints — time, knowledge, resources — that need to be revisited as those constraints change.&lt;/p&gt;&#xA;&lt;p&gt;By that definition, some technical debt is inevitable. Some of it is even correct.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-myth-all-technical-debt-is-bad&#34;&gt;The Myth: All Technical Debt Is Bad&lt;/h2&gt;&#xA;&lt;p&gt;There&amp;rsquo;s a version of engineering culture where &amp;ldquo;we have technical debt&amp;rdquo; is always a failure statement — an indictment of past decisions. This is wrong in a practical sense and counterproductive in a team sense.&lt;/p&gt;&#xA;&lt;p&gt;Taking on technical debt deliberately, knowing you&amp;rsquo;re doing it, is a valid engineering decision. Shipping a working feature with a rough implementation to meet a deadline, with the intention of cleaning it up once the feature is validated — that&amp;rsquo;s a reasonable trade-off. The product gets to market, the feature gets tested with real users, and the team pays off the debt once they know it&amp;rsquo;s worth paying.&lt;/p&gt;&#xA;&lt;p&gt;The problematic debt isn&amp;rsquo;t the kind you took on deliberately. It&amp;rsquo;s the kind you took on accidentally, or the kind you took on deliberately and then forgot to pay off.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-quadrant&#34;&gt;The Quadrant&lt;/h2&gt;&#xA;&lt;p&gt;Cunningham&amp;rsquo;s framework (later expanded by Martin Fowler) plots debt across two axes:&lt;/p&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th&gt;&lt;/th&gt;&#xA;          &lt;th&gt;&lt;strong&gt;Prudent&lt;/strong&gt;&lt;/th&gt;&#xA;          &lt;th&gt;&lt;strong&gt;Reckless&lt;/strong&gt;&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;strong&gt;Deliberate&lt;/strong&gt;&lt;/td&gt;&#xA;          &lt;td&gt;&amp;ldquo;We know we&amp;rsquo;re cutting a corner — we&amp;rsquo;ll fix it after launch.&amp;rdquo;&lt;/td&gt;&#xA;          &lt;td&gt;&amp;ldquo;We don&amp;rsquo;t have time to do this right.&amp;rdquo;&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;strong&gt;Inadvertent&lt;/strong&gt;&lt;/td&gt;&#xA;          &lt;td&gt;&amp;ldquo;Now we understand the domain better, we&amp;rsquo;d design it differently.&amp;rdquo;&lt;/td&gt;&#xA;          &lt;td&gt;&amp;ldquo;What&amp;rsquo;s layering? What&amp;rsquo;s coupling?&amp;rdquo;&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;p&gt;The top-left quadrant is healthy engineering. You made a conscious decision, accepted a trade-off, and have a plan to revisit it.&lt;/p&gt;&#xA;&lt;p&gt;The top-right quadrant is a process problem. Teams under chronic pressure accumulate reckless deliberate debt — they know they&amp;rsquo;re doing it wrong, but there&amp;rsquo;s no space to do it right.&lt;/p&gt;&#xA;&lt;p&gt;The bottom-left quadrant is actually a sign of learning — you understand the domain better now than you did when you built it. That&amp;rsquo;s how software development works.&lt;/p&gt;&#xA;&lt;p&gt;The bottom-right quadrant is the genuinely dangerous kind: technical debt that nobody knows exists because nobody understood what good looked like to begin with. It&amp;rsquo;s also the hardest to fix, because the people who need to fix it don&amp;rsquo;t know it needs fixing.&lt;/p&gt;&#xA;&lt;h2 id=&#34;how-to-actually-measure-debt&#34;&gt;How to Actually Measure Debt&lt;/h2&gt;&#xA;&lt;p&gt;Test coverage percentages and lines of code are misleading proxies. A codebase can have 80% test coverage and be in terrible shape. A codebase with no tests can be clean and well-factored.&lt;/p&gt;&#xA;&lt;p&gt;The metric that actually reflects technical debt is &lt;strong&gt;time-to-feature&lt;/strong&gt;: how long does it take to add a new capability to the system? Specifically:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;How long does it take an experienced developer to understand the relevant part of the codebase before they can change it?&lt;/li&gt;&#xA;&lt;li&gt;How many unrelated files need to change when you modify one thing?&lt;/li&gt;&#xA;&lt;li&gt;How long does a typical PR stay in review because reviewers don&amp;rsquo;t understand the context?&lt;/li&gt;&#xA;&lt;li&gt;How often does fixing one bug introduce a new bug?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;If these numbers are growing over time as the team grows in experience and the system matures, that&amp;rsquo;s the fingerprint of compounding debt. If they&amp;rsquo;re stable or shrinking, the team is managing it well regardless of what the code looks like aesthetically.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-compounding-effect&#34;&gt;The Compounding Effect&lt;/h2&gt;&#xA;&lt;p&gt;The financial debt metaphor is apt because debt compounds. A codebase with moderate coupling in one area tends to attract more coupling. Engineers working in a messy area write messy code — partly because messy code is harder to refactor incrementally, partly because &amp;ldquo;it&amp;rsquo;s already messy here&amp;rdquo; is a real psychological signal that reduces care.&lt;/p&gt;&#xA;&lt;p&gt;The compounding shows up in specific ways:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Feature velocity drops.&lt;/strong&gt; What took one sprint in year one takes three sprints in year three. The team isn&amp;rsquo;t slower — the codebase has accumulated friction.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Bugs cluster.&lt;/strong&gt; When the same three files keep appearing in post-mortems, the debt is localised. That&amp;rsquo;s actually useful information — it tells you exactly where to focus remediation.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Onboarding time grows.&lt;/strong&gt; A new engineer taking four weeks to make their first meaningful contribution indicates a knowledge transfer problem that&amp;rsquo;s usually rooted in accidental complexity — things being hard to understand that shouldn&amp;rsquo;t be.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Changes feel risky.&lt;/strong&gt; When experienced engineers hesitate before touching an area of the codebase, that hesitation is measuring something real. Systems that are well-understood and well-structured feel safe to change. Systems laden with debt feel dangerous.&lt;/p&gt;&#xA;&lt;h2 id=&#34;when-to-pay-it-off&#34;&gt;When to Pay It Off&lt;/h2&gt;&#xA;&lt;p&gt;Pay off technical debt when the signals above appear in combination:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Feature velocity in a specific area is measurably slower than it was&lt;/li&gt;&#xA;&lt;li&gt;Bugs are clustering in the same components&lt;/li&gt;&#xA;&lt;li&gt;Onboarding to that component takes disproportionate time&lt;/li&gt;&#xA;&lt;li&gt;Engineers express reluctance to touch it&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;These signals carry a business cost you can estimate. If a feature takes three sprints now that would take one sprint in a refactored system, the debt costs you two sprints per feature. That&amp;rsquo;s a concrete number to bring to the remediation conversation.&lt;/p&gt;&#xA;&lt;p&gt;The strongest case for paying debt is when the affected code is on the critical path for upcoming work. Refactor the module you&amp;rsquo;re about to extend, not the one that hasn&amp;rsquo;t been touched in two years.&lt;/p&gt;&#xA;&lt;h2 id=&#34;when-not-to-pay-it-off&#34;&gt;When NOT to Pay It Off&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;When the code isn&amp;rsquo;t on the critical path.&lt;/strong&gt; Code that works, is stable, and is never going to change doesn&amp;rsquo;t need to be beautiful. Touching it creates risk without corresponding benefit. Leave it alone.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;When refactoring means rewriting.&lt;/strong&gt; Full rewrites almost always create new debt while paying off the old. The system that exists, however messy, encodes a tremendous amount of learned behaviour, edge case handling, and implicit product knowledge. A rewrite starts from zero and typically rediscovers the same problems. The graveyard of failed big-bang rewrites is extensive.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;When you don&amp;rsquo;t understand the problem well enough.&lt;/strong&gt; Premature refactoring — cleaning up code whose domain you don&amp;rsquo;t fully understand — often makes things worse. Wait until you&amp;rsquo;ve worked in an area long enough to know what the right abstractions actually are.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;When the business is changing faster than the technology.&lt;/strong&gt; If you&amp;rsquo;re iterating on the product rapidly, paying off architectural debt before the product shape stabilises is often wasted work. Wait for the product to settle before hardening the architecture.&lt;/p&gt;&#xA;&lt;h2 id=&#34;refactor-as-you-go-vs-dedicated-sprints&#34;&gt;Refactor-as-You-Go vs Dedicated Sprints&lt;/h2&gt;&#xA;&lt;p&gt;Both approaches work. Neither works alone.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Refactor-as-you-go&lt;/strong&gt; is the boy-scout rule: leave the code a little better than you found it. When you&amp;rsquo;re working in an area, clean up local issues — rename confusing variables, extract a function, add a test for the path you just changed. This prevents accumulation without requiring dedicated time.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Dedicated sprints&lt;/strong&gt; are appropriate for larger structural problems — architecture-level issues that can&amp;rsquo;t be fixed in passing. A module with the wrong abstraction boundary, a database schema that needs migration, an API contract that&amp;rsquo;s accumulated too many backwards-compatible hacks. These require focused effort and carry risk that should be planned for explicitly.&lt;/p&gt;&#xA;&lt;p&gt;The mistake is treating them as alternatives. Teams that rely only on refactor-as-you-go never tackle structural problems. Teams that rely only on dedicated sprints never get business approval for the time, and small issues accumulate in the interim.&lt;/p&gt;&#xA;&lt;h2 id=&#34;how-to-talk-about-it-with-non-technical-stakeholders&#34;&gt;How to Talk About It With Non-Technical Stakeholders&lt;/h2&gt;&#xA;&lt;p&gt;&amp;ldquo;We need to pay off technical debt&amp;rdquo; lands poorly with people who don&amp;rsquo;t write code. It sounds like engineers wanting to clean up their mess instead of building features.&lt;/p&gt;&#xA;&lt;p&gt;The translation that works: &lt;strong&gt;cost per change&lt;/strong&gt;. &amp;ldquo;Right now, adding a feature to the billing module takes three weeks because of how it&amp;rsquo;s structured. If we spend two weeks restructuring it, the next five features each take one week instead of three. That&amp;rsquo;s a net saving of eight weeks on the next five features.&amp;rdquo;&lt;/p&gt;&#xA;&lt;p&gt;This argument is usually accurate. The work of making it is measuring the current friction and estimating the improvement. If you can&amp;rsquo;t make that case with numbers, the work probably isn&amp;rsquo;t justified.&lt;/p&gt;&#xA;&lt;p&gt;Dealing with an inherited codebase and not sure where to start? &lt;a href=&#34;mailto:hello@cimpleo.com&#34;&gt;Write to us at hello@cimpleo.com&lt;/a&gt;. We&amp;rsquo;ll audit the codebase and tell you what&amp;rsquo;s worth fixing and what&amp;rsquo;s better left alone.&lt;/p&gt;&#xA;</content:encoded>
    </item>
    <item>
      <title>Microservices vs Monolith: An Honest Take for 2026</title>
      <link>https://cimpleo.com/blog/microservices-vs-monolith/</link>
      <pubDate>Wed, 11 Mar 2026 00:00:00 +0000</pubDate>
      <guid isPermaLink="true">https://cimpleo.com/blog/microservices-vs-monolith/</guid>
      <description>The microservices vs monolith debate is mostly noise. Here&#39;s what actually determines the right architecture for your stage and team size.</description>
      <content:encoded>&lt;img src=&#34;https://cimpleo.com/uploads/microservices-vs-monolith-hero.svg&#34; alt=&#34;Microservices vs Monolith architecture comparison&#34; class=&#34;img-fluid lazyload&#34;&gt;&#xA;&lt;p&gt;The microservices vs monolith debate has been running for a decade. It should have been settled years ago, but engineering blog posts from Netflix, Amazon, and Uber keep reviving it — and those companies are not your company. Their architecture decisions were made to solve problems you don&amp;rsquo;t have yet, at a scale you may never reach, with engineering teams twenty times larger than yours. Taking architectural advice from Netflix when you have 4 backend engineers is like taking traffic management advice from Tokyo when you&amp;rsquo;re planning a road in a village of 3,000 people.&lt;/p&gt;&#xA;&lt;p&gt;Here is an honest take, grounded in what actually works at different stages.&lt;/p&gt;&#xA;&lt;h2 id=&#34;how-the-debate-got-corrupted&#34;&gt;How the Debate Got Corrupted&lt;/h2&gt;&#xA;&lt;p&gt;The narrative went roughly like this: Amazon decomposed their monolith into services and scaled to global commerce. Netflix moved to microservices and achieved 99.99% uptime. Therefore microservices = good, monolith = legacy.&lt;/p&gt;&#xA;&lt;p&gt;What those posts left out: Amazon had hundreds of engineers and years of investment in platform infrastructure before that transition paid off. Netflix built an entire internal platform (and later open-sourced much of it) to manage service discovery, circuit breaking, distributed tracing, and rollback. The architecture they describe is microservices plus a sophisticated platform that makes microservices manageable.&lt;/p&gt;&#xA;&lt;p&gt;When a 10-person startup reads those posts and decides to build their MVP as 15 independent services with a Kubernetes cluster, they are not following best practices. They are cosplaying at an architecture they can&amp;rsquo;t support.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-microservices-actually-solve&#34;&gt;What Microservices Actually Solve&lt;/h2&gt;&#xA;&lt;p&gt;Microservices are a solution to specific, real problems. Understanding what those problems are helps you know whether you have them.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Independent deployability.&lt;/strong&gt; When different parts of your system need to be released on different schedules — because different teams own them, or because different services have different risk profiles — microservices let you ship a change to one service without touching anything else.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Team autonomy.&lt;/strong&gt; Conway&amp;rsquo;s Law is real: your system architecture will mirror your team communication structure. Large organisations with separate product teams benefit from service boundaries that match organisational boundaries. Each team owns a service, deploys independently, and is not blocked by another team&amp;rsquo;s release cycle.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Fault isolation.&lt;/strong&gt; If a recommendation service goes down, the checkout service in an &lt;a href=&#34;https://cimpleo.com/services/ecommerce/&#34;&gt;e-commerce&lt;/a&gt; store should still work. Microservices with proper bulkheads prevent failures in one area from cascading across the entire system.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Independent scaling.&lt;/strong&gt; If your image processing workload is CPU-intensive but your user auth service is lightweight, you want to scale them separately — not overprovision everything to match the peak requirements of the most demanding component.&lt;/p&gt;&#xA;&lt;p&gt;These are real advantages. They are also only meaningful when you have the problems they solve.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-microservices-actually-cost&#34;&gt;What Microservices Actually Cost&lt;/h2&gt;&#xA;&lt;p&gt;The advantages above are not free. Every microservice you add to your system adds a layer of complexity that affects every engineer on your team, every day.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Distributed systems complexity.&lt;/strong&gt; Network calls fail in ways in-process function calls do not. You now have to handle partial failures, retries, idempotency, timeouts, and backpressure across every service boundary.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Observability overhead.&lt;/strong&gt; A bug in a monolith has a stack trace. A bug across four services has a distributed trace that requires correlation IDs, structured logging across all services, and a tracing system (Jaeger, Zipkin, or similar) to reconstruct. This is solvable, but it takes tooling and discipline to set up.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Service discovery and networking.&lt;/strong&gt; In a monolith, function A calling function B is a local method call. In microservices, service A calling service B requires a network transport, service discovery, load balancing, TLS between services, and usually a sidecar or service mesh if you&amp;rsquo;re serious about it.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Distributed transactions.&lt;/strong&gt; If you need to update two services atomically — say, charge a payment and update an order status — you can&amp;rsquo;t use a database transaction anymore. You need sagas, two-phase commit, or eventual consistency patterns. These are genuinely hard to implement correctly.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Deployment complexity.&lt;/strong&gt; Instead of deploying one artefact, you&amp;rsquo;re managing 10 or 20 independent deploy pipelines, container registries, rollout strategies, and version compatibility matrices.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-honest-case-for-a-monolith&#34;&gt;The Honest Case for a Monolith&lt;/h2&gt;&#xA;&lt;p&gt;A well-structured monolith is not a technical debt. It is a deliberately simple system that is faster to develop, easier to debug, simpler to deploy, and cheaper to operate — at the cost of some constraints that may or may not matter to your team today.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;A single database transaction is easier and more reliable than a distributed saga.&lt;/li&gt;&#xA;&lt;li&gt;A single deploy pipeline is faster to maintain than 12 separate ones.&lt;/li&gt;&#xA;&lt;li&gt;A stack trace is faster to debug than a distributed trace.&lt;/li&gt;&#xA;&lt;li&gt;Hiring engineers who understand one codebase is easier than explaining 15 service boundaries to a new joiner.&lt;/li&gt;&#xA;&lt;li&gt;Local development is &lt;code&gt;git clone &amp;amp;&amp;amp; npm install&lt;/code&gt;, not spinning up a &lt;a href=&#34;https://cimpleo.com/services/docker/&#34;&gt;container&lt;/a&gt; cluster.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;For most products up to a certain scale, the monolith is not the bottleneck. The bottleneck is shipping fast enough, debugging issues quickly, and keeping the team productive. Monoliths win on all three.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-modular-monolith-the-middle-path-most-teams-should-be-on&#34;&gt;The Modular Monolith: The Middle Path Most Teams Should Be On&lt;/h2&gt;&#xA;&lt;p&gt;The modular monolith deserves more attention than it gets. The core idea: structure your monolith with well-enforced internal module boundaries — separate packages, clear interfaces, no cross-module data access at the database layer — so that if and when you need to extract a service, you already have the seam.&lt;/p&gt;&#xA;&lt;p&gt;This gives you:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Monolith deployment simplicity (one artefact, one database, one pipeline)&lt;/li&gt;&#xA;&lt;li&gt;Faster development (no network overhead, no distributed tracing needed yet)&lt;/li&gt;&#xA;&lt;li&gt;Enforced separation of concerns within the codebase&lt;/li&gt;&#xA;&lt;li&gt;A clear extraction path when you genuinely need it&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Most teams that claim they need microservices actually need a modular monolith with stricter internal structure. They have a spaghetti monolith and are trying to solve it with service boundaries when the real problem is poor internal discipline.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-migration-anti-pattern&#34;&gt;The Migration Anti-Pattern&lt;/h2&gt;&#xA;&lt;p&gt;The worst outcome in this debate is decomposing a monolith before you understand why you&amp;rsquo;re doing it. This pattern goes:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Team decides the monolith is the source of all problems.&lt;/li&gt;&#xA;&lt;li&gt;They start extracting services one by one.&lt;/li&gt;&#xA;&lt;li&gt;Each extraction adds 2–3 weeks of overhead (new repo, new pipeline, service discovery, cross-service auth, integration tests).&lt;/li&gt;&#xA;&lt;li&gt;The original monolith still exists and is still being modified.&lt;/li&gt;&#xA;&lt;li&gt;12 months later, the team has 6 services, a partially extracted monolith, and significantly more complexity than when they started.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;If you&amp;rsquo;re migrating to microservices, you need a clear, measurable reason — a specific team is blocked by another team&amp;rsquo;s release cycle, a specific component needs to scale independently, a specific failure domain needs isolation. &amp;ldquo;The monolith is getting big&amp;rdquo; is not a reason. Monoliths can be big and fast and maintainable with the right structure.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-decision-framework&#34;&gt;The Decision Framework&lt;/h2&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th&gt;Factor&lt;/th&gt;&#xA;          &lt;th&gt;Favour Monolith&lt;/th&gt;&#xA;          &lt;th&gt;Favour Microservices&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Team size&lt;/td&gt;&#xA;          &lt;td&gt;&amp;lt; 15 engineers&lt;/td&gt;&#xA;          &lt;td&gt;15+ engineers, multiple teams&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Deployment frequency&lt;/td&gt;&#xA;          &lt;td&gt;Same cadence across system&lt;/td&gt;&#xA;          &lt;td&gt;Different cadence per domain&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Org structure&lt;/td&gt;&#xA;          &lt;td&gt;Single team&lt;/td&gt;&#xA;          &lt;td&gt;Multiple product teams&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Failure domain requirements&lt;/td&gt;&#xA;          &lt;td&gt;Not critical&lt;/td&gt;&#xA;          &lt;td&gt;Strict fault isolation needed&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Scale differential&lt;/td&gt;&#xA;          &lt;td&gt;Uniform load&lt;/td&gt;&#xA;          &lt;td&gt;Very different load per component&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Operational maturity&lt;/td&gt;&#xA;          &lt;td&gt;Limited DevOps capability&lt;/td&gt;&#xA;          &lt;td&gt;Mature platform team&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;p&gt;Ask these questions before you decide:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;strong&gt;Do different parts of your system need to deploy independently today?&lt;/strong&gt; If no, you don&amp;rsquo;t need service boundaries today.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Do you have separate teams that are blocked by a shared deployment?&lt;/strong&gt; If no, team autonomy is not your problem.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Does one component need to scale at 100x the rate of another?&lt;/strong&gt; If no, you don&amp;rsquo;t need independent scaling.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Do you have the observability and platform infrastructure to operate multiple services reliably?&lt;/strong&gt; If no, you will lose weeks to debugging distributed systems problems before you ship features.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;If you answered no to all four, build a monolith. Structure it well internally. Extract services when you hit a concrete reason to.&lt;/p&gt;&#xA;&lt;p&gt;Deciding on the &lt;a href=&#34;https://cimpleo.com/services/cloud-architecture/&#34;&gt;cloud architecture&lt;/a&gt; for a new product, or trying to figure out whether your current monolith is actually the problem? &lt;a href=&#34;mailto:hello@cimpleo.com&#34;&gt;Write to us at hello@cimpleo.com&lt;/a&gt;. We&amp;rsquo;ll give you an honest read.&lt;/p&gt;&#xA;</content:encoded>
    </item>
  </channel>
</rss>
