A Java geek
Read post

RFC 9880 and the IoT Validation Problem

RFC 9880 defines the Semantic Definition Format (SDF), a JSON-based, ecosystem-neutral standard for describing IoT device data models, born from the One Data Model (OneDM) cross-industry initiative. The post explains why five major IoT ecosystems (LwM2M, OCF, Matter, WoT, IPSO) describe the same device in incompatible ways, and how SDF addresses this fragmentation. The author then shares lessons from building an SDF validator in Java, framing validation as a compilation problem: parse and resolve the SDF document once into an immutable compiled model, bootstrap a policy-configured validator tree once per configuration, then validate payloads at O(1) dispatch with zero allocation on the hot path. Key optimizations include character-level parsers for date-time and base64, lazy error path construction, and singleton defaults. The compiled intermediate model — serializable, cacheable, and language-agnostic — turns out to be the most valuable artifact, enabling edge deployment, CI/CD distribution, and cross-language interoperability.

    #java#iot
Jul 26•13m read time•From blog.frankel.ch
Post cover image
3.8K Impressions
A Java geek's image
A Java geek

Frankel's platform covers topics related to software development, technology trends, and coding tut...

83 Followers

•

1.2K Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard