[{"data":1,"prerenderedAt":304},["ShallowReactive",2],{"profile":3,"works:detail:\u002Fworks\u002Fcod-fee-calculation":198,"works:next:\u002Fworks\u002Fcod-fee-calculation":299},{"id":4,"approach":5,"description":32,"email":33,"extension":34,"headline":35,"location":38,"meta":39,"name":40,"openTo":41,"opportunitiesNote":45,"personalIntro":46,"portrait":47,"role":49,"skills":50,"socials":185,"stem":194,"summary":195,"timeZone":196,"__hash__":197},"profile\u002Fprofile.json",{"motto":6,"points":7},"Find the cause. Fix the pattern.",[8,12,16,20,24,28],{"verb":9,"subject":10,"note":11},"traces","Problems to their cause","With evidence, before changing anything.",{"verb":13,"subject":14,"note":15},"designs","Systems and their boundaries","Data flows, alternatives, and how each part fails.",{"verb":17,"subject":18,"note":19},"unifies","What keeps getting repeated","Into shared code and ways of working others build on.",{"verb":21,"subject":22,"note":23},"shares","What the team needs to know","Designs, reviews, and docs others can pick up.",{"verb":25,"subject":26,"note":27},"learns","What the next problem needs","Often before the work asks for it.",{"verb":29,"subject":30,"note":31},"checks","What AI agents write","At work, agents draft; code review and tests decide what ships.","I’m a software engineer, building production software since 2018 for logistics platforms, small businesses, government services, and factories. I’ve built front ends and backends, and for part of that time I also led a team. What I care about most is understanding the problem well enough that what we build keeps working.","devvara@rishivian.dev","json",[36,37],"The work starts","before the code.","Malang, East Java, Indonesia",{},"Devvara Rishivian",[42,43,44],"Roles in Indonesia","Remote worldwide","Freelance work",null,"I’m Devvara. My first job, straight out of vocational high school, was building the web applications healthcare businesses used to report to Indonesia’s Ministry of Health. Every role since has asked for something I didn’t know yet, from new languages to leading a team, and I’ve learned it on my own and put it to work.",{"src":48,"alt":40},"\u002Fportrait.jpg","Senior Software Engineer",{"practice":51,"layers":70,"tools":157},[52,55,58,61,64,67],{"name":53,"icon":54},"System design","heroicons:cube-transparent-solid",{"name":56,"icon":57},"API design","heroicons:code-bracket-square-solid",{"name":59,"icon":60},"Microservices","heroicons:server-stack-solid",{"name":62,"icon":63},"Systems integration","heroicons:arrows-right-left-solid",{"name":65,"icon":66},"Production troubleshooting","heroicons:magnifying-glass-solid",{"name":68,"icon":69},"Unit testing","heroicons:beaker-solid",[71,92,113,140],{"name":72,"items":73},"Data and messaging",[74,77,80,83,86,89],{"name":75,"icon":76},"MySQL","simple-icons:mysql",{"name":78,"icon":79},"PostgreSQL","simple-icons:postgresql",{"name":81,"icon":82},"MongoDB","simple-icons:mongodb",{"name":84,"icon":85},"Redis","simple-icons:redis",{"name":87,"icon":88},"Google Cloud Pub\u002FSub","simple-icons:googlepubsub",{"name":90,"icon":91},"Google Cloud Storage","simple-icons:googlecloudstorage",{"name":93,"items":94},"Services",[95,98,101,104,107,110],{"name":96,"icon":97},"Go","simple-icons:go",{"name":99,"icon":100},"PHP","simple-icons:php",{"name":102,"icon":103},"Laravel","simple-icons:laravel",{"name":105,"icon":106},"TypeScript","simple-icons:typescript",{"name":108,"icon":109},"Bun","simple-icons:bun",{"name":111,"icon":112},"Hono","simple-icons:hono",{"name":114,"items":115},"Interfaces",[116,119,122,125,128,131,134,137],{"name":117,"icon":118},"REST APIs","heroicons:globe-alt-solid",{"name":120,"icon":121},"gRPC","heroicons:arrows-up-down-solid",{"name":123,"icon":124},"Protocol Buffers","heroicons:document-text-solid",{"name":126,"icon":127},"Webhooks","heroicons:bolt-solid",{"name":129,"icon":130},"OAuth 2.0 token validation","heroicons:shield-check-solid",{"name":132,"icon":133},"JWT","simple-icons:jsonwebtokens",{"name":135,"icon":136},"PASETO","heroicons:lock-closed-solid",{"name":138,"icon":139},"API keys","heroicons:key-solid",{"name":141,"note":142,"items":143},"Front end","Supporting",[144,147,150,153,156],{"name":145,"icon":146},"Vue.js","simple-icons:vuedotjs",{"name":148,"icon":149},"Nuxt","simple-icons:nuxt",{"name":151,"icon":152},"React","simple-icons:react",{"name":154,"icon":155},"Next.js","simple-icons:nextdotjs",{"name":105,"icon":106},[158,173],{"name":159,"items":160},"Build and observe",[161,164,167,170],{"name":162,"icon":163},"Git","simple-icons:git",{"name":165,"icon":166},"Docker","simple-icons:docker",{"name":168,"icon":169},"GitHub Actions","simple-icons:githubactions",{"name":171,"icon":172},"Grafana Loki","simple-icons:grafana",{"name":174,"items":175},"AI agents",[176,179,182],{"name":177,"icon":178},"OpenCode","simple-icons:opencode",{"name":180,"icon":181},"Claude Code","simple-icons:claude",{"name":183,"icon":184},"Pi","simple-icons:pi",[186,190],{"platform":187,"url":188,"handle":189},"LinkedIn","https:\u002F\u002Flinkedin.com\u002Fin\u002Fdevvara","devvara",{"platform":191,"url":192,"handle":193},"GitHub","https:\u002F\u002Fgithub.com\u002Fdevararishivian","devararishivian","profile","Senior Software Engineer with 8+ years of professional experience building production software with teams, across logistics, commerce, enterprise and government systems, and manufacturing.","Asia\u002FJakarta","HJVI0FXwFPPanA2ckAGRD4DTxdOq--olJY6OGARc7wA",{"id":199,"title":200,"access":201,"body":202,"collaboration":278,"contribution":279,"description":280,"extension":281,"featured":282,"format":283,"image":45,"links":284,"meta":285,"navigation":282,"order":286,"organization":287,"path":288,"period":289,"publication":290,"publishedAt":291,"seo":292,"stem":293,"tags":294,"technologies":297,"updatedAt":45,"__hash__":298},"works\u002Fworks\u002Fcod-fee-calculation.md","One place to calculate COD fees","The code and internal details belong to KiriminAja.",{"type":203,"value":204,"toc":268},"minimark",[205,210,214,217,221,224,227,231,234,238,251,255,258,262,265],[206,207,209],"h2",{"id":208},"problem","Problem",[211,212,213],"p",{},"With cash on delivery (COD), the buyer pays the courier when the package arrives. A fee applies to that payment. Until\nthe end of 2024, KiriminAja paid this fee. A change in tax regulation moved the fee, with tax on it, to buyers and\nsellers from 1 January 2025.",[211,215,216],{},"The platform calculated COD amounts in three different places, and each place used its own code. A change to the rules\nmeant three changes that had to agree with each other.",[206,218,220],{"id":219},"constraints","Constraints",[211,222,223],{},"The new rules started on 1 January 2025, so the change had to be in production before that date.",[211,225,226],{},"Two kinds of COD use different rules. In standard COD, the buyer pays the fee and the tax. In custom COD, the seller\nsets the amount that the courier collects, and the seller pays the fee and the tax from it.",[206,228,230],{"id":229},"what-i-did","What I did",[211,232,233],{},"I proposed one calculation in one Go service. Every caller then gets the same result, and the next rule change happens\nin one place. My team agreed, and we built it together. I wrote 74 of the 83 commits in the main change. The final\nrelease went out on 31 December 2024.",[206,235,237],{"id":236},"decisions","Decisions",[239,240,241,245,248],"ul",{},[242,243,244],"li",{},"All callers use the same calculation. No part of the platform keeps its own copy.",[242,246,247],{},"The tax starts on a configured date. It started on the same day as the regulation, without a new release.",[242,249,250],{},"The calculation refuses a custom amount that cannot cover its own fees. A seller never gets a negative payout.",[206,252,254],{"id":253},"result","Result",[211,256,257],{},"The new rules went live on time, and COD rules now change in one place. In 2025, the team moved COD fees to a separate\nservice. I wrote its first version, and other services use it now.",[206,259,261],{"id":260},"next-time","Next time",[211,263,264],{},"On similar work, I start with the business need. Then I study how the current system works, so that I make the\ndecision with the facts in hand. That study also shows how to move each caller to the new calculation.",[211,266,267],{},"The lesson that I keep is \"slow down to go faster.\" The first step took more time and more effort. It paid off later,\nbecause the business logic is in the correct place and there is one source of truth.",{"title":269,"searchDepth":270,"depth":270,"links":271},"",2,[272,273,274,275,276,277],{"id":208,"depth":270,"text":209},{"id":219,"depth":270,"text":220},{"id":229,"depth":270,"text":230},{"id":236,"depth":270,"text":237},{"id":253,"depth":270,"text":254},{"id":260,"depth":270,"text":261},"Team project","Proposed the design and wrote most of the code","A tax change moved cash-on-delivery fees to buyers and sellers. I proposed one shared calculation in place of three, and I built most of it with my team.","md",true,"case-study",[],{},1,"KiriminAja","\u002Fworks\u002Fcod-fee-calculation","Dec 2024","published","2026-11-21",{"title":200,"description":280},"works\u002Fcod-fee-calculation",[295,296],"work","backend",[96,99],"qwAyLV6ljEzoACchtcQWLZnzSUPCFj_WPVRf9QpkBcU",{"path":300,"title":301,"format":302,"description":303},"\u002Fworks\u002Fpartner-api","A partner API that businesses can join on their own","Case study","The backend that lets partner businesses subscribe, pay, and connect their own systems to KiriminAja, without a manual approval before they can test.",1795392792995]