[{"data":1,"prerenderedAt":899},["ShallowReactive",2],{"navigation_docs":3,"-backend-development-backend-roadmap":377,"-backend-development-backend-roadmap-surround":894},[4,39,114,144,184,244,293,362],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Getting Started",false,"\u002Fgetting-started","1.getting-started",[10,15,20,25,30,35],{"title":11,"path":12,"stem":13,"icon":14},"Learning Path","\u002Fgetting-started\u002Flearning-path","1.getting-started\u002F1.learning-path","i-lucide-map",{"title":16,"path":17,"stem":18,"icon":19},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F2.introduction","i-lucide-house",{"title":21,"path":22,"stem":23,"icon":24},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F3.installation","i-lucide-download",{"title":26,"path":27,"stem":28,"icon":29},"Your First Program","\u002Fgetting-started\u002Ffirst-program","1.getting-started\u002F4.first-program","i-lucide-play",{"title":31,"path":32,"stem":33,"icon":34},"Modules and Dependencies","\u002Fgetting-started\u002Fmodules-and-dependencies","1.getting-started\u002F5.modules-and-dependencies","i-lucide-package-open",{"title":36,"path":37,"stem":38,"icon":34},"Advanced Modules","\u002Fgetting-started\u002Fadvanced-modules","1.getting-started\u002F6.advanced-modules",{"title":40,"path":41,"stem":42,"children":43,"page":6},"Fundamentals","\u002Ffundamentals","2.fundamentals",[44,49,54,59,64,69,74,79,84,89,94,99,104,109],{"title":45,"path":46,"stem":47,"icon":48},"Program Structure","\u002Ffundamentals\u002Fprogram-structure","2.fundamentals\u002F1.program-structure","i-lucide-workflow",{"title":50,"path":51,"stem":52,"icon":53},"Structs and Methods","\u002Ffundamentals\u002Fstructs-and-methods","2.fundamentals\u002F10.structs-and-methods","i-lucide-box",{"title":55,"path":56,"stem":57,"icon":58},"Interfaces","\u002Ffundamentals\u002Finterfaces","2.fundamentals\u002F11.interfaces","i-lucide-plug",{"title":60,"path":61,"stem":62,"icon":63},"Error Handling","\u002Ffundamentals\u002Ferrors","2.fundamentals\u002F12.errors","i-lucide-triangle-alert",{"title":65,"path":66,"stem":67,"icon":68},"Defined Types and Type Aliases","\u002Ffundamentals\u002Fdefined-types","2.fundamentals\u002F13.defined-types","i-lucide-tags",{"title":70,"path":71,"stem":72,"icon":73},"Generics","\u002Ffundamentals\u002Fgenerics","2.fundamentals\u002F14.generics","i-lucide-blocks",{"title":75,"path":76,"stem":77,"icon":78},"Project Structure","\u002Ffundamentals\u002Fproject-structure","2.fundamentals\u002F2.project-structure","i-lucide-folder-tree",{"title":80,"path":81,"stem":82,"icon":83},"Project Layout","\u002Ffundamentals\u002Fproject-layout","2.fundamentals\u002F3.project-layout","i-lucide-layout",{"title":85,"path":86,"stem":87,"icon":88},"Variables and Data Types","\u002Ffundamentals\u002Fvariables-and-types","2.fundamentals\u002F4.variables-and-types","i-lucide-variable",{"title":90,"path":91,"stem":92,"icon":93},"Functions","\u002Ffundamentals\u002Ffunctions","2.fundamentals\u002F5.functions","i-lucide-braces",{"title":95,"path":96,"stem":97,"icon":98},"Control Statements","\u002Ffundamentals\u002Fcontrol-statements","2.fundamentals\u002F6.control-statements","i-lucide-git-branch",{"title":100,"path":101,"stem":102,"icon":103},"Pointers","\u002Ffundamentals\u002Fpointers","2.fundamentals\u002F7.pointers","i-lucide-mouse-pointer-2",{"title":105,"path":106,"stem":107,"icon":108},"Arrays and Slices","\u002Ffundamentals\u002Farrays-and-slices","2.fundamentals\u002F8.arrays-and-slices","i-lucide-list",{"title":110,"path":111,"stem":112,"icon":113},"Maps","\u002Ffundamentals\u002Fmaps","2.fundamentals\u002F9.maps","i-lucide-table-properties",{"title":115,"path":116,"stem":117,"children":118,"page":6},"Concurrency","\u002Fconcurrency","3.concurrency",[119,124,129,134,139],{"title":120,"path":121,"stem":122,"icon":123},"Concurrency Model","\u002Fconcurrency\u002Fconcurrency-model","3.concurrency\u002F1.concurrency-model","i-lucide-network",{"title":125,"path":126,"stem":127,"icon":128},"Goroutines","\u002Fconcurrency\u002Fgoroutines","3.concurrency\u002F2.goroutines","i-lucide-git-fork",{"title":130,"path":131,"stem":132,"icon":133},"Channels","\u002Fconcurrency\u002Fchannels","3.concurrency\u002F3.channels","i-lucide-arrow-left-right",{"title":135,"path":136,"stem":137,"icon":138},"Select and Cancellation","\u002Fconcurrency\u002Fselect-and-cancellation","3.concurrency\u002F4.select-and-cancellation","i-lucide-circle-stop",{"title":140,"path":141,"stem":142,"icon":143},"Synchronization","\u002Fconcurrency\u002Fsynchronization","3.concurrency\u002F5.synchronization","i-lucide-lock-keyhole",{"title":145,"path":146,"stem":147,"children":148,"page":6},"Standard Library","\u002Fstandard-library","4.standard-library",[149,154,159,164,169,174,179],{"title":150,"path":151,"stem":152,"icon":153},"Standard Library Overview","\u002Fstandard-library\u002Foverview","4.standard-library\u002F1.overview","i-lucide-library",{"title":155,"path":156,"stem":157,"icon":158},"Text and Formatting","\u002Fstandard-library\u002Ftext-and-formatting","4.standard-library\u002F2.text-and-formatting","i-lucide-text",{"title":160,"path":161,"stem":162,"icon":163},"Files and JSON","\u002Fstandard-library\u002Ffiles-and-json","4.standard-library\u002F3.files-and-json","i-lucide-file-json",{"title":165,"path":166,"stem":167,"icon":168},"HTTP Clients and Servers","\u002Fstandard-library\u002Fhttp","4.standard-library\u002F4.http","i-lucide-server",{"title":170,"path":171,"stem":172,"icon":173},"Testing","\u002Fstandard-library\u002Ftesting","4.standard-library\u002F5.testing","i-lucide-flask-conical",{"title":175,"path":176,"stem":177,"icon":178},"Command-Line Tools and Configuration","\u002Fstandard-library\u002Fcommand-line-and-configuration","4.standard-library\u002F6.command-line-and-configuration","i-lucide-terminal-square",{"title":180,"path":181,"stem":182,"icon":183},"Structured Logging","\u002Fstandard-library\u002Fstructured-logging","4.standard-library\u002F7.structured-logging","i-lucide-scroll-text",{"title":185,"path":186,"stem":187,"children":188,"page":6},"Backend Development","\u002Fbackend-development","5.backend-development",[189,194,199,204,209,214,219,224,229,234,239],{"title":190,"path":191,"stem":192,"icon":193},"Backend Roadmap","\u002Fbackend-development\u002Fbackend-roadmap","5.backend-development\u002F1.backend-roadmap","i-lucide-route",{"title":195,"path":196,"stem":197,"icon":198},"Graceful Shutdown","\u002Fbackend-development\u002Fgraceful-shutdown","5.backend-development\u002F10.graceful-shutdown","i-lucide-power",{"title":200,"path":201,"stem":202,"icon":203},"Production Checklist","\u002Fbackend-development\u002Fproduction-checklist","5.backend-development\u002F11.production-checklist","i-lucide-clipboard-check",{"title":205,"path":206,"stem":207,"icon":208},"HTTP API Design","\u002Fbackend-development\u002Fhttp-api-design","5.backend-development\u002F2.http-api-design","i-lucide-waypoints",{"title":210,"path":211,"stem":212,"icon":213},"Middleware","\u002Fbackend-development\u002Fmiddleware","5.backend-development\u002F3.middleware","i-lucide-layers-3",{"title":215,"path":216,"stem":217,"icon":218},"Validation","\u002Fbackend-development\u002Fvalidation","5.backend-development\u002F4.validation","i-lucide-list-checks",{"title":220,"path":221,"stem":222,"icon":223},"Application Wiring","\u002Fbackend-development\u002Fapplication-wiring","5.backend-development\u002F5.application-wiring","i-lucide-cable",{"title":225,"path":226,"stem":227,"icon":228},"Observability","\u002Fbackend-development\u002Fobservability","5.backend-development\u002F6.observability","i-lucide-activity",{"title":230,"path":231,"stem":232,"icon":233},"Database SQL","\u002Fbackend-development\u002Fdatabase-sql","5.backend-development\u002F7.database-sql","i-lucide-database",{"title":235,"path":236,"stem":237,"icon":238},"Transactions","\u002Fbackend-development\u002Ftransactions","5.backend-development\u002F8.transactions","i-lucide-repeat-2",{"title":240,"path":241,"stem":242,"icon":243},"Authentication and Authorization","\u002Fbackend-development\u002Fauthentication","5.backend-development\u002F9.authentication","i-lucide-shield-check",{"title":245,"path":246,"stem":247,"children":248,"page":6},"Advanced Go","\u002Fadvanced-go","6.advanced-go",[249,254,259,264,269,274,278,283,288],{"title":250,"path":251,"stem":252,"icon":253},"Advanced Go Roadmap","\u002Fadvanced-go\u002Fadvanced-roadmap","6.advanced-go\u002F1.advanced-roadmap","i-lucide-brain-circuit",{"title":255,"path":256,"stem":257,"icon":258},"Reflection","\u002Fadvanced-go\u002Freflection","6.advanced-go\u002F2.reflection","i-lucide-scan-search",{"title":260,"path":261,"stem":262,"icon":263},"Memory and Garbage Collection","\u002Fadvanced-go\u002Fmemory-and-garbage-collection","6.advanced-go\u002F3.memory-and-garbage-collection","i-lucide-memory-stick",{"title":265,"path":266,"stem":267,"icon":268},"Benchmarking and Profiling","\u002Fadvanced-go\u002Fbenchmarking-and-profiling","6.advanced-go\u002F4.benchmarking-and-profiling","i-lucide-gauge",{"title":270,"path":271,"stem":272,"icon":273},"Advanced Testing and Fuzzing","\u002Fadvanced-go\u002Fadvanced-testing-and-fuzzing","6.advanced-go\u002F5.advanced-testing-and-fuzzing","i-lucide-microscope",{"title":275,"path":276,"stem":277,"icon":48},"Advanced Concurrency","\u002Fadvanced-go\u002Fadvanced-concurrency","6.advanced-go\u002F6.advanced-concurrency",{"title":279,"path":280,"stem":281,"icon":282},"Unsafe and C Boundaries","\u002Fadvanced-go\u002Funsafe-and-cgo","6.advanced-go\u002F7.unsafe-and-cgo","i-lucide-radiation",{"title":284,"path":285,"stem":286,"icon":287},"Package and API Design","\u002Fadvanced-go\u002Fpackage-and-api-design","6.advanced-go\u002F8.package-and-api-design","i-lucide-boxes",{"title":289,"path":290,"stem":291,"icon":292},"Distributed Reliability","\u002Fadvanced-go\u002Fdistributed-reliability","6.advanced-go\u002F9.distributed-reliability","i-lucide-cloud-cog",{"title":294,"path":295,"stem":296,"children":297,"page":6},"Projects","\u002Fprojects","7.projects",[298,316,332,347],{"title":299,"path":300,"stem":301,"children":302,"icon":305},"CLI Task Manager","\u002Fprojects\u002Fcli-task-manager","7.projects\u002F1.cli-task-manager\u002Findex",[303,306,311],{"title":304,"path":300,"stem":301,"icon":305},"Project — CLI Task Manager","i-lucide-list-todo",{"title":307,"path":308,"stem":309,"icon":310},"CLI — Domain and Storage","\u002Fprojects\u002Fcli-task-manager\u002Fdomain-and-storage","7.projects\u002F1.cli-task-manager\u002F1.domain-and-storage","i-lucide-save",{"title":312,"path":313,"stem":314,"icon":315},"CLI — Commands and Tests","\u002Fprojects\u002Fcli-task-manager\u002Fcommands-and-tests","7.projects\u002F1.cli-task-manager\u002F2.commands-and-tests","i-lucide-terminal",{"title":317,"path":318,"stem":319,"children":320,"icon":323},"Concurrent URL Checker","\u002Fprojects\u002Fconcurrent-url-checker","7.projects\u002F2.concurrent-url-checker\u002Findex",[321,324,328],{"title":322,"path":318,"stem":319,"icon":323},"Project — Concurrent URL Checker","i-lucide-radar",{"title":325,"path":326,"stem":327,"icon":128},"URL Checker — Worker Pipeline","\u002Fprojects\u002Fconcurrent-url-checker\u002Fworker-pipeline","7.projects\u002F2.concurrent-url-checker\u002F1.worker-pipeline",{"title":329,"path":330,"stem":331,"icon":173},"URL Checker — Cancellation and Tests","\u002Fprojects\u002Fconcurrent-url-checker\u002Fcancellation-and-tests","7.projects\u002F2.concurrent-url-checker\u002F2.cancellation-and-tests",{"title":333,"path":334,"stem":335,"children":336},"File-backed API","\u002Fprojects\u002Ffile-backed-api","7.projects\u002F3.file-backed-api\u002Findex",[337,339,343],{"title":338,"path":334,"stem":335},"File-backed notes API",{"title":340,"path":341,"stem":342},"File store and concurrency","\u002Fprojects\u002Ffile-backed-api\u002Ffile-store-and-concurrency","7.projects\u002F3.file-backed-api\u002F1.file-store-and-concurrency",{"title":344,"path":345,"stem":346},"HTTP layer and tests","\u002Fprojects\u002Ffile-backed-api\u002Fhttp-and-tests","7.projects\u002F3.file-backed-api\u002F2.http-and-tests",{"title":348,"path":349,"stem":350,"children":351},"Production REST API","\u002Fprojects\u002Fproduction-rest-api","7.projects\u002F4.production-rest-api\u002Findex",[352,354,358],{"title":353,"path":349,"stem":350},"Production REST API capstone",{"title":355,"path":356,"stem":357},"Persistence and authentication","\u002Fprojects\u002Fproduction-rest-api\u002Fpersistence-and-auth","7.projects\u002F4.production-rest-api\u002F1.persistence-and-auth",{"title":359,"path":360,"stem":361},"Operations and release","\u002Fprojects\u002Fproduction-rest-api\u002Foperations-and-release","7.projects\u002F4.production-rest-api\u002F2.operations-and-release",{"title":363,"path":364,"stem":365,"children":366,"page":6},"Meta","\u002Fmeta","99.meta",[367,372],{"title":368,"path":369,"stem":370,"icon":371},"About","\u002Fmeta\u002Fabout","99.meta\u002F1.about","i-lucide-info",{"title":373,"path":374,"stem":375,"icon":376},"Acknowledgements","\u002Fmeta\u002Facknowledgements","99.meta\u002F2.acknowledgements","i-lucide-heart-handshake",{"id":378,"title":190,"body":379,"description":886,"extension":887,"links":888,"meta":889,"navigation":890,"path":191,"seo":891,"stem":192,"__hash__":893},"docs\u002F5.backend-development\u002F1.backend-roadmap.md",{"type":380,"value":381,"toc":874},"minimark",[382,388,393,397,416,420,423,426,437,440,460,464,467,473,476,497,500,504,510,513,539,554,558,561,700,703,706,710,713,742,745,749,752,782,786,819,823,826,843,847,864,867,870],[383,384],"learning-lesson-meta",{"level":385,"prerequisites":386,"time":387},"Intermediate","Fundamentals, concurrency, standard-library HTTP, configuration, and testing","25–35 minutes",[389,390,392],"h2",{"id":391},"what-you-will-learn","What you will learn",[394,395,396],"p",{},"By the end of this lesson, you will be able to:",[398,399,400,404,407,410,413],"ul",{},[401,402,403],"li",{},"identify the main boundaries in a backend service;",[401,405,406],{},"separate transport, business, and storage concerns;",[401,408,409],{},"explain why production readiness includes more than endpoint code;",[401,411,412],{},"plan a service in vertical slices;",[401,414,415],{},"choose a sensible order for the remaining backend lessons.",[389,417,419],{"id":418},"mental-model-a-backend-is-a-long-running-coordinator","Mental model: a backend is a long-running coordinator",[394,421,422],{},"A backend accepts work from outside the process, validates it, applies business rules, reads or changes state, and returns a result. It must keep doing that while requests overlap, dependencies fail, deployments replace the process, and invalid or hostile input arrives.",[394,424,425],{},"The HTTP handler is only the outer edge.",[427,428,434],"pre",{"className":429,"code":431,"language":432,"meta":433},[430],"language-text","client\n  ↓\nHTTP transport\n  ↓\napplication service\n  ↓\nrepository or external client\n  ↓\ndatabase \u002F remote service\n","text","",[435,436,431],"code",{"__ignoreMap":433},[394,438,439],{},"Cross-cutting concerns surround the flow:",[398,441,442,445,448,451,454,457],{},[401,443,444],{},"configuration;",[401,446,447],{},"logging, metrics, and tracing;",[401,449,450],{},"authentication and authorization;",[401,452,453],{},"cancellation and timeouts;",[401,455,456],{},"graceful startup and shutdown;",[401,458,459],{},"tests and security checks.",[389,461,463],{"id":462},"start-with-one-vertical-slice","Start with one vertical slice",[394,465,466],{},"Do not create dozens of empty packages before implementing a feature. Begin with one small use case, such as creating and listing lessons:",[427,468,471],{"className":469,"code":470,"language":432,"meta":433},[430],"POST \u002Flessons\nGET  \u002Flessons\n",[435,472,470],{"__ignoreMap":433},[394,474,475],{},"Implement the complete path:",[477,478,479,482,485,488,491,494],"ol",{},[401,480,481],{},"Parse the request.",[401,483,484],{},"Validate its shape.",[401,486,487],{},"Apply business rules.",[401,489,490],{},"Store or retrieve data.",[401,492,493],{},"Map the result to an HTTP response.",[401,495,496],{},"Test success and failure.",[394,498,499],{},"Then extract boundaries that have demonstrated a reason to exist.",[389,501,503],{"id":502},"a-practical-package-shape","A practical package shape",[427,505,508],{"className":506,"code":507,"language":432,"meta":433},[430],"cmd\u002Fapi\u002Fmain.go\ninternal\u002F\n  lesson\u002F\n    lesson.go\n    service.go\n    repository.go\n  httpapi\u002F\n    routes.go\n    lessons.go\n    middleware.go\n  postgres\u002F\n    lessons.go\n",[435,509,507],{"__ignoreMap":433},[394,511,512],{},"This is an example, not a required standard.",[398,514,515,521,527,533],{},[401,516,517,520],{},[435,518,519],{},"cmd\u002Fapi"," wires dependencies and owns process lifetime.",[401,522,523,526],{},[435,524,525],{},"lesson"," contains domain concepts and use cases.",[401,528,529,532],{},[435,530,531],{},"httpapi"," translates HTTP into application calls.",[401,534,535,538],{},[435,536,537],{},"postgres"," implements storage details.",[394,540,541,542,545,546,549,550,553],{},"Keep package names short, concrete, and based on responsibility. Avoid catch-all packages named ",[435,543,544],{},"utils",", ",[435,547,548],{},"common",", or ",[435,551,552],{},"helpers"," when a more specific home exists.",[389,555,557],{"id":556},"dependency-direction","Dependency direction",[394,559,560],{},"Inner application code should not need to know HTTP status codes or SQL driver details.",[427,562,566],{"className":563,"code":564,"language":565,"meta":433,"style":433},"language-go shiki shiki-themes solarized-light material-theme one-dark-pro","type LessonRepository interface {\n    Create(ctx context.Context, lesson Lesson) error\n    List(ctx context.Context) ([]Lesson, error)\n}\n\ntype Service struct {\n    repository LessonRepository\n}\n","go",[435,567,568,588,627,659,665,672,685,695],{"__ignoreMap":433},[569,570,573,577,581,584],"span",{"class":571,"line":572},"line",1,[569,574,576],{"class":575},"sEOdo","type",[569,578,580],{"class":579},"snwKR"," LessonRepository",[569,582,583],{"class":575}," interface",[569,585,587],{"class":586},"shFME"," {\n",[569,589,591,595,598,602,605,608,611,614,617,620,623],{"class":571,"line":590},2,[569,592,594],{"class":593},"sisdC","    Create",[569,596,597],{"class":586},"(",[569,599,601],{"class":600},"syre3","ctx",[569,603,604],{"class":579}," context",[569,606,607],{"class":586},".",[569,609,610],{"class":579},"Context",[569,612,613],{"class":586},",",[569,615,616],{"class":600}," lesson",[569,618,619],{"class":579}," Lesson",[569,621,622],{"class":586},")",[569,624,626],{"class":625},"sF6sA"," error\n",[569,628,630,633,635,637,639,641,643,645,648,651,653,656],{"class":571,"line":629},3,[569,631,632],{"class":593},"    List",[569,634,597],{"class":586},[569,636,601],{"class":600},[569,638,604],{"class":579},[569,640,607],{"class":586},[569,642,610],{"class":579},[569,644,622],{"class":586},[569,646,647],{"class":586}," ([]",[569,649,650],{"class":579},"Lesson",[569,652,613],{"class":586},[569,654,655],{"class":625}," error",[569,657,658],{"class":586},")\n",[569,660,662],{"class":571,"line":661},4,[569,663,664],{"class":586},"}\n",[569,666,668],{"class":571,"line":667},5,[569,669,671],{"emptyLinePlaceholder":670},true,"\n",[569,673,675,677,680,683],{"class":571,"line":674},6,[569,676,576],{"class":575},[569,678,679],{"class":579}," Service",[569,681,682],{"class":575}," struct",[569,684,587],{"class":586},[569,686,688,692],{"class":571,"line":687},7,[569,689,691],{"class":690},"s45-6","    repository",[569,693,694],{"class":579}," LessonRepository\n",[569,696,698],{"class":571,"line":697},8,[569,699,664],{"class":586},[394,701,702],{},"The service declares the behaviour it needs. A database adapter implements that behaviour. The command chooses the implementation and connects them.",[394,704,705],{},"Do not create an interface automatically for every struct. Add one at a consumer boundary when multiple implementations, testing isolation, or architectural separation provides real value.",[389,707,709],{"id":708},"production-questions-to-answer","Production questions to answer",[394,711,712],{},"Before calling a service production-ready, ask:",[398,714,715,718,721,724,727,730,733,736,739],{},[401,716,717],{},"How are timeouts set at the server, request, database, and external-client levels?",[401,719,720],{},"What happens when the client disconnects?",[401,722,723],{},"Which operations can be retried safely?",[401,725,726],{},"How are secrets provided and protected?",[401,728,729],{},"What is logged, measured, and traced?",[401,731,732],{},"How does the process signal readiness and health?",[401,734,735],{},"How are schema changes deployed?",[401,737,738],{},"How does shutdown stop new work and drain current work?",[401,740,741],{},"How can a failed release be rolled back?",[394,743,744],{},"These are design inputs, not cleanup tasks for the final day.",[389,746,748],{"id":747},"learning-sequence","Learning sequence",[394,750,751],{},"Follow this section in order:",[477,753,754,757,759,761,764,766,771,773,776,779],{},[401,755,756],{},"HTTP API design",[401,758,210],{},[401,760,215],{},[401,762,763],{},"Application wiring and configuration",[401,765,225],{},[401,767,768],{},[435,769,770],{},"database\u002Fsql",[401,772,235],{},[401,774,775],{},"Authentication and authorization",[401,777,778],{},"Graceful shutdown",[401,780,781],{},"Production checklist",[389,783,785],{"id":784},"common-mistakes","Common mistakes",[398,787,788,795,801,807,813],{},[401,789,790,794],{},[791,792,793],"strong",{},"Beginning with a framework:"," framework knowledge cannot replace understanding HTTP, context, ownership, and errors.",[401,796,797,800],{},[791,798,799],{},"Designing every future layer first:"," unused abstractions make change harder.",[401,802,803,806],{},[791,804,805],{},"Letting handlers contain all business logic:"," reuse and focused testing become difficult.",[401,808,809,812],{},[791,810,811],{},"Passing database rows directly to clients:"," storage schema changes become API changes.",[401,814,815,818],{},[791,816,817],{},"Calling a service production-ready because it starts:"," operability and safe failure are part of correctness.",[389,820,822],{"id":821},"practice","Practice",[394,824,825],{},"Sketch the request path for creating a lesson. Name the data type at each boundary, which layer validates it, which layer owns the business rule, and how cancellation reaches storage.",[827,828,829],"accordion",{},[830,831,834,840],"accordion-item",{"icon":832,"label":833},"i-lucide-lightbulb","Show one possible design",[427,835,838],{"className":836,"code":837,"language":432,"meta":433},[430],"HTTP JSON CreateLessonRequest\n  ↓ decode + shape validation in HTTP transport\napplication CreateLessonCommand\n  ↓ business validation in lesson service\ndomain Lesson\n  ↓ repository interface receives request context\ndatabase INSERT parameters\n  ↓ generated ID returned upward\nHTTP LessonResponse + 201 Created\n",[435,839,837],{"__ignoreMap":433},[394,841,842],{},"The request's context is passed from the handler to the service and repository. HTTP-specific details stay in the transport. Business rules such as title uniqueness belong in the application\u002Fdomain boundary. Database constraints still enforce critical invariants because concurrent requests can pass an application check at the same time.",[389,844,846],{"id":845},"summary","Summary",[398,848,849,852,855,858,861],{},[401,850,851],{},"A backend coordinates transport, application rules, storage, and operations.",[401,853,854],{},"Build one complete vertical slice before introducing many abstractions.",[401,856,857],{},"Keep HTTP and SQL details out of core business rules.",[401,859,860],{},"Interfaces belong at useful consumer boundaries, not everywhere.",[401,862,863],{},"Production behaviour includes cancellation, security, observability, and lifecycle management.",[865,866],"learning-lesson-complete",{},[868,869],"learning-lesson-navigation",{"next":206,"next-label":205,"previous":181,"previous-label":180},[871,872,873],"style",{},"html pre.shiki code .sEOdo, html code.shiki .sEOdo{--shiki-light:#859900;--shiki-default:#89DDFF;--shiki-dark:#C678DD}html pre.shiki code .snwKR, html code.shiki .snwKR{--shiki-light:#CB4B16;--shiki-default:#FFCB6B;--shiki-dark:#E5C07B}html pre.shiki code .shFME, html code.shiki .shFME{--shiki-light:#657B83;--shiki-default:#89DDFF;--shiki-dark:#ABB2BF}html pre.shiki code .sisdC, html code.shiki .sisdC{--shiki-light:#268BD2;--shiki-default:#82AAFF;--shiki-dark:#61AFEF}html pre.shiki code .syre3, html code.shiki .syre3{--shiki-light:#657B83;--shiki-light-font-style:inherit;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#E06C75;--shiki-dark-font-style:italic}html pre.shiki code .sF6sA, html code.shiki .sF6sA{--shiki-light:#586E75;--shiki-light-font-weight:bold;--shiki-default:#C792EA;--shiki-default-font-weight:inherit;--shiki-dark:#C678DD;--shiki-dark-font-weight:inherit}html pre.shiki code .s45-6, html code.shiki .s45-6{--shiki-light:#268BD2;--shiki-default:#EEFFFF;--shiki-dark:#E06C75}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":433,"searchDepth":590,"depth":590,"links":875},[876,877,878,879,880,881,882,883,884,885],{"id":391,"depth":590,"text":392},{"id":418,"depth":590,"text":419},{"id":462,"depth":590,"text":463},{"id":502,"depth":590,"text":503},{"id":556,"depth":590,"text":557},{"id":708,"depth":590,"text":709},{"id":747,"depth":590,"text":748},{"id":784,"depth":590,"text":785},{"id":821,"depth":590,"text":822},{"id":845,"depth":590,"text":846},"Connect Go fundamentals to a production-style service without skipping the engineering boundaries.","md",null,{},{"icon":193},{"description":892,"title":190},"Follow a structured Go backend roadmap covering HTTP, validation, middleware, databases, authentication, observability, and operations.","9UMrAkAtM7CSwPhfEPerzXSrHXReuu3VpbmWs1vHFfM",[895,897],{"title":180,"path":181,"stem":182,"description":896,"icon":183,"children":-1},"Create useful, searchable logs with log\u002Fslog without exposing sensitive data.",{"title":195,"path":196,"stem":197,"description":898,"icon":198,"children":-1},"Stop accepting work, drain active requests, cancel background tasks, and release resources in order.",1794118092726]