<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Shubham Anandani on Medium]]></title>
        <description><![CDATA[Stories by Shubham Anandani on Medium]]></description>
        <link>https://medium.com/@imshubh5?source=rss-4462d5d148f7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*jmlZpIY3uw7WQLRZ</url>
            <title>Stories by Shubham Anandani on Medium</title>
            <link>https://medium.com/@imshubh5?source=rss-4462d5d148f7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 19:40:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@imshubh5/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Restart-Safe Stream Jobs: Checkpoints and Idempotent Writes]]></title>
            <link>https://imshubh5.medium.com/restart-safe-stream-jobs-checkpoints-and-idempotent-writes-f71e3f7a5876?source=rss-4462d5d148f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/f71e3f7a5876</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[streaming]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[reliability]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Shubham Anandani]]></dc:creator>
            <pubDate>Sat, 17 Oct 2026 19:00:30 GMT</pubDate>
            <atom:updated>2026-11-01T19:57:25.993Z</atom:updated>
            <content:encoded><![CDATA[<h4>How to make a containerised stream-processing job survive restarts without duplicates or lost work, with a runnable Java sketch.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nx_G9CcmUrF9zQMt1qCo4Q.png" /></figure><h3>Problem</h3><p>Stream jobs are different from stateless APIs. They carry progress, they read from an offset, and they have to pick up cleanly after a restart. In a container platform, restarts are routine, not exceptional. If a restart changes your output, the job does not really own its state. Two ideas fix most of this: store progress outside the process, and make every write safe to repeat.</p><h3>Options and trade-offs</h3><ul><li>Keep progress in memory: fast, and all progress is lost on restart.</li><li>Checkpoint after every record: safest, but the overhead can dominate.</li><li>Checkpoint on a bounded interval and make writes idempotent: a crash replays a little work, and the replay changes nothing.</li></ul><h3>My recommendation</h3><p>Write idempotent upserts keyed by a stable record ID, store the checkpoint atomically, and on startup resume from the last checkpoint. Treat exactly-once as a goal you approach by combining at-least-once delivery with idempotent effects.</p><h3>Worked example</h3><p>The sketch below has no dependencies. It simulates a crash in the middle of a run, then restarts from the checkpoint. The replayed records are written again, but the output does not change.</p><pre>import java.io.IOException;<br>import java.nio.file.*;<br>import java.util.*;<br><br>public class IdempotentJob {<br><br>    record Event(String id, long offset, String value) { }<br><br>    static final Path CHECKPOINT = Path.of(&quot;checkpoint.txt&quot;);<br>    static final Map&lt;String, String&gt; sink = new TreeMap&lt;&gt;();   // upsert by id<br><br>    static long readCheckpoint() throws IOException {<br>        return Files.exists(CHECKPOINT) ? Long.parseLong(Files.readString(CHECKPOINT).strip()) : 0L;<br>    }<br><br>    static void writeCheckpoint(long offset) throws IOException {<br>        Path tmp = Path.of(&quot;checkpoint.tmp&quot;);<br>        Files.writeString(tmp, Long.toString(offset));<br>        Files.move(tmp, CHECKPOINT, StandardCopyOption.ATOMIC_MOVE, StandardCopyOption.REPLACE_EXISTING);<br>    }<br><br>    static void run(List&lt;Event&gt; source, long crashAfterOffset) throws IOException {<br>        long start = readCheckpoint();<br>        int sinceCheckpoint = 0;<br>        for (Event e : source) {<br>            if (e.offset() &lt; start) continue;<br>            sink.put(e.id(), e.value());                 // idempotent: same key, same value<br>            if (++sinceCheckpoint == 5) {<br>                writeCheckpoint(e.offset() + 1);<br>                sinceCheckpoint = 0;<br>            }<br>            if (e.offset() == crashAfterOffset) {<br>                throw new IllegalStateException(&quot;simulated crash at offset &quot; + e.offset());<br>            }<br>        }<br>        writeCheckpoint(source.size());<br>    }<br><br>    public static void main(String[] args) throws IOException {<br>        Files.deleteIfExists(CHECKPOINT);<br>        List&lt;Event&gt; source = new ArrayList&lt;&gt;();<br>        for (int i = 0; i &lt; 20; i++) source.add(new Event(&quot;evt-&quot; + i, i, &quot;value-&quot; + i));<br><br>        try {<br>            run(source, 7);                              // crashes mid-run<br>        } catch (IllegalStateException crash) {<br>            System.out.println(crash.getMessage() + &quot;, resuming from &quot; + readCheckpoint());<br>        }<br>        run(source, -1);                                 // restart: replays 5..7, then finishes<br>        System.out.println(&quot;records in sink = &quot; + sink.size());   // 20, not 23<br>    }<br>}</pre><p>In a container, the checkpoint file would live on a volume or, better, in an external store, so it survives the container being replaced. The same idea applies when the source is a message broker with committed offsets and the sink supports upserts or transactions.</p><h3>Checklist</h3><ol><li>Persist progress outside the container.</li><li>Write the checkpoint atomically, so a crash never leaves it half-written.</li><li>Key writes by a stable ID, and make repeating them harmless.</li><li>On startup, read the checkpoint and resume, and log what you recovered without logging payloads.</li><li>Pace catch-up after an outage with bounded batches and concurrency.</li><li>Test by killing the process mid-run and comparing the output with an uninterrupted run.</li></ol><h3>Where this doesn’t apply</h3><p>This sketch is single-threaded with an in-memory sink, to show the mechanics. Real jobs also need partitioning, ordering guarantees per key, and a sink that is itself durable.</p><h3>One honest limitation</h3><p>Idempotency limits what a write can be. Operations like incrementing a counter are not safe to repeat, so they need a composite key, a version, or a transactional sink to be handled correctly.</p><h3>Sources</h3><ul><li><a href="https://kafka.apache.org/documentation/#semantics">Apache Kafka Documentation: Message delivery semantics</a></li><li><a href="https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/nio/file/Files.html">Oracle Java Documentation: java.nio.file.Files.move (atomic move)</a></li><li><a href="https://docs.docker.com/engine/storage/volumes/">Docker Docs: Volumes</a></li></ul><p><em>Originally published at </em><a href="https://www.imshubh.com/articles/docker/restart-safe-stream-jobs-in-containers.html"><em>https://www.imshubh.com</em></a><em> on October 17, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f71e3f7a5876" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[API Evolution: Keep Wire Contracts Stable for Java Clients]]></title>
            <link>https://imshubh5.medium.com/api-evolution-keep-wire-contracts-stable-for-java-clients-7dcf1aea2eb0?source=rss-4462d5d148f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/7dcf1aea2eb0</guid>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[backend]]></category>
            <category><![CDATA[compatibility]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[Shubham Anandani]]></dc:creator>
            <pubDate>Sat, 17 Oct 2026 19:00:29 GMT</pubDate>
            <atom:updated>2026-11-15T20:29:05.478Z</atom:updated>
            <content:encoded><![CDATA[<h4>Tolerant readers, batch error handling, and golden-file tests</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6g4i3trtNMX03gN2WteVxw.png" /></figure><h3>What counts as the contract</h3><ul><li>Field names, types, and optionality.</li><li>HTTP status codes and which situations produce them.</li><li>The <strong>error envelope</strong>: its fields and their meaning.</li><li>Batch semantics: partial failures, ordering, and duplicates.</li><li>Behavior when a request omits optional parameters, such as projections.</li></ul><h3>Be a tolerant reader</h3><pre>import com.fasterxml.jackson.annotation.JsonIgnoreProperties;<br>import com.fasterxml.jackson.databind.JsonNode;<br><br>@JsonIgnoreProperties(ignoreUnknown = true)<br>public record ErrorEnvelope(int status, String message, String code, JsonNode errorDetails) {<br><br>    public ErrorEnvelope {<br>        message = message == null ? &quot;&quot; : message;<br>    }<br>}</pre><ul><li>ignoreUnknown = true protects you from new server fields.</li><li>errorDetails stays a raw JsonNode. If the server&#39;s details are free-form, do not force them into a fixed class. Keep them untyped, and let the caller interpret them.</li><li>Missing message becomes an empty string, so downstream code does not need null checks.</li></ul><h3>Classify errors in one place</h3><pre>public enum ErrorKind { CLIENT_ERROR, NOT_FOUND, UNPROCESSABLE, SERVER_ERROR, UNKNOWN }<br><br>public static ErrorKind classify(int status) {<br>    if (status == 404) return ErrorKind.NOT_FOUND;<br>    if (status == 422) return ErrorKind.UNPROCESSABLE;<br>    if (status &gt;= 400 &amp;&amp; status &lt; 500) return ErrorKind.CLIENT_ERROR;<br>    if (status &gt;= 500 &amp;&amp; status &lt; 600) return ErrorKind.SERVER_ERROR;<br>    return ErrorKind.UNKNOWN;<br>}</pre><h3>Handle batch responses carefully</h3><pre>public static &lt;V&gt; BatchOutcome&lt;V&gt; split(Map&lt;String, V&gt; results, Map&lt;String, ErrorEnvelope&gt; errors) {<br>    Map&lt;String, V&gt; ok = new LinkedHashMap&lt;&gt;(results);<br>    Map&lt;String, ErrorKind&gt; failed = new LinkedHashMap&lt;&gt;();<br>    errors.forEach((id, env) -&gt; {<br>        ok.remove(id);<br>        failed.put(id, classify(env.status()));<br>    });<br>    return new BatchOutcome&lt;&gt;(ok, failed);<br>}<br><br>public record BatchOutcome&lt;V&gt;(Map&lt;String, V&gt; succeeded, Map&lt;String, ErrorKind&gt; failed) { }</pre><h3>Server-side rules for safe evolution</h3><ul><li>Add fields as optional. Never remove or repurpose a field without a deprecation period.</li><li>Do not change status codes for existing situations.</li><li>Do not change the shape of the error envelope. Add to it instead.</li><li>Be careful with requests that send no projection or field selection. Defaults are part of the contract.</li><li>Version deliberately when you must break something, and announce it.</li></ul><h3>Golden-file tests</h3><pre>import com.fasterxml.jackson.databind.ObjectMapper;<br>import org.junit.jupiter.api.Test;<br>import static org.junit.jupiter.api.Assertions.*;<br><br>class ErrorEnvelopeTest {<br><br>    private final ObjectMapper mapper = new ObjectMapper();<br><br>    @Test<br>    void parsesCurrentShape() throws Exception {<br>        String json = &quot;&quot;&quot;<br>            {&quot;status&quot;:422,&quot;message&quot;:&quot;invalid&quot;,&quot;code&quot;:&quot;VALIDATION&quot;,&quot;errorDetails&quot;:{&quot;field&quot;:&quot;email&quot;}}<br>            &quot;&quot;&quot;;<br>        ErrorEnvelope env = mapper.readValue(json, ErrorEnvelope.class);<br>        assertEquals(422, env.status());<br>        assertEquals(&quot;email&quot;, env.errorDetails().get(&quot;field&quot;).asText());<br>    }<br><br>    @Test<br>    void ignoresFieldsAddedLater() throws Exception {<br>        String json = &quot;&quot;&quot;<br>            {&quot;status&quot;:404,&quot;message&quot;:&quot;gone&quot;,&quot;futureField&quot;:{&quot;x&quot;:1}}<br>            &quot;&quot;&quot;;<br>        assertEquals(404, mapper.readValue(json, ErrorEnvelope.class).status());<br>    }<br><br>    @Test<br>    void missingOptionalFieldsDoNotFail() throws Exception {<br>        ErrorEnvelope env = mapper.readValue(&quot;{\&quot;status\&quot;:500}&quot;, ErrorEnvelope.class);<br>        assertEquals(&quot;&quot;, env.message());<br>        assertNull(env.code());<br>    }<br>}</pre><h3>Failure modes</h3><ul><li>A status change (for example 400 to 422) with no announcement.</li><li>A strict client parser that rejects new fields.</li><li>Error details forced into a typed structure that drops data.</li><li>Batch handlers that fail the whole batch or hide partial failures.</li><li>Requests without projections returning a different shape than before.</li></ul><h3>Demo to build</h3><p>Create a client fixture from the current API response, then evolve the server by adding an optional field and a new error detail. Verify the tolerant client still reads the old and new payloads, that unknown details survive, and that status codes and batch partial-failure behavior match the contract. Review golden-file diffs as part of the change.</p><h3>Takeaways</h3><ul><li>The contract includes errors, status codes, and batch behavior.</li><li>Clients should be tolerant readers and keep free-form details untyped.</li><li>Golden-file tests turn accidental contract changes into visible diffs.</li></ul><h3>Sources</h3><ul><li><a href="https://www.rfc-editor.org/rfc/rfc9457.html">RFC 9457: Problem Details for HTTP APIs</a></li><li><a href="https://github.com/FasterXML/jackson-databind">Jackson Databind documentation</a></li><li><a href="https://spec.openapis.org/oas/v3.1.0.html">OpenAPI 3.1 specification</a></li></ul><p><em>Originally published at </em><a href="https://www.imshubh.com/articles/java/api-evolution-keep-wire-contracts-stable-for-java-clients.html"><em>https://www.imshubh.com</em></a><em> on October 17, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7dcf1aea2eb0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Compartment design and movement: policy implications]]></title>
            <link>https://imshubh5.medium.com/compartment-design-and-movement-policy-implications-8c2ed9cf0395?source=rss-4462d5d148f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c2ed9cf0395</guid>
            <category><![CDATA[oci]]></category>
            <category><![CDATA[identity]]></category>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[governance]]></category>
            <dc:creator><![CDATA[Shubham Anandani]]></dc:creator>
            <pubDate>Fri, 16 Oct 2026 19:00:25 GMT</pubDate>
            <atom:updated>2026-10-29T21:15:36.191Z</atom:updated>
            <content:encoded><![CDATA[<h4>How I structure compartments so access stays predictable when one has to move.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9ZEK5HOuifiu3_r4M25XtQ.png" /></figure><h3>Problem</h3><p>Compartments split resources and policy scope, and the layout you choose on day one is hard to change quietly. When a compartment moves, the set of policies that apply to it can change with it, and people can gain or lose access without anyone editing a statement.</p><p>I wanted a hierarchy that makes moves boring and lets me check the result afterwards.</p><h3>Options and trade-offs</h3><ul><li>A flat design: simple, with few movement cases and limited delegation.</li><li>A hierarchical design: flexible, with inherited access, and it needs careful names and ownership.</li><li>Policies attached at a shared ancestor: they adjust automatically when a descendant moves under the same ancestor, and lower-level policies may need manual edits.</li></ul><h3>My recommendation</h3><p>Use a clear hierarchy with named owners, and attach policies at an ancestor that will survive the moves you expect. After any move, verify access from the point of view of the people involved and fix anything that attached lower down.</p><h3>Worked example</h3><p>Take a move from A:B:C to A:D. Policies written at A, the common ancestor, keep working and update their path references. A policy attached inside B that named C by path no longer matches its target, and the access it granted disappears until someone rewrites it.</p><pre># Attached at A (the shared ancestor): survives the move<br>Allow group TeamA-Admins to manage all-resources in compartment A:Prod<br>Allow group TeamA-Users  to use instance-family in compartment A:Dev<br> <br># Attached inside A:B and naming C by path: must be reviewed after the move<br>Allow group TeamC to use instance-family in compartment A:B:C</pre><p>Before a move, list the policies that mention the compartment and note which ancestor each is attached to. After the move, check access with a test user for each group. Quotas and budgets are set per compartment, so confirm them too.</p><h3>Checklist</h3><ol><li>Define the hierarchy, names and owners before creating compartments.</li><li>Attach policies at ancestors that will not move.</li><li>Before a move, list the policies that reference the compartment.</li><li>After a move, test access for every affected group.</li><li>Use quotas and budgets at the compartment level as guardrails.</li><li>Avoid duplicate compartment names under the same parent.</li></ol><h3>Where this doesn’t apply</h3><p>Security zones have their own rules, and a move that crosses a zone boundary is restricted. Manage those through the Security Zones service.</p><h3>One honest limitation</h3><p>Changes in implicit access are easy to miss. Treat a move as a planned change with a validation step afterwards, and do not call it finished until you have checked.</p><h3>Sources</h3><ul><li><a href="https://docs.oracle.com/en-us/iaas/Content/Identity/compartments/managingcompartments.htm">OCI Documentation: Managing Compartments (moving a compartment)</a></li><li><a href="https://docs.oracle.com/en-us/iaas/Content/Identity/Concepts/policysyntax.htm">OCI Documentation: Policy Syntax (compartment paths)</a></li><li><a href="https://docs.oracle.com/en-us/iaas/Content/Quotas/Concepts/resourcequotas.htm">OCI Documentation: Compartment Quotas and Budgets</a></li></ul><p><em>Originally published at </em><a href="https://www.imshubh.com/articles/oracle-ace/compartment-design-and-movement-policy-implications.html"><em>https://www.imshubh.com</em></a><em> on October 16, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c2ed9cf0395" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Discussions as Your Community Front Door]]></title>
            <link>https://imshubh5.medium.com/discussions-as-your-community-front-door-12ed1c370078?source=rss-4462d5d148f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/12ed1c370078</guid>
            <category><![CDATA[community]]></category>
            <category><![CDATA[online-discussions]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[collaboration]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Shubham Anandani]]></dc:creator>
            <pubDate>Thu, 15 Oct 2026 19:00:29 GMT</pubDate>
            <atom:updated>2026-11-05T05:32:24.072Z</atom:updated>
            <content:encoded><![CDATA[<h4>How to enable Discussions, set up categories, pin canonical threads, and convert between issues and discussions as conversations change shape.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JU8N7GoIrMeSKePQ2T39RQ.png" /></figure><h3>Problem</h3><p>Issues should track work. Discussions suit open-ended questions, ideas, and announcements. Discussions supports categories with different formats, pinned threads, accepted answers, upvotes, and conversion between issues and discussions. Defining these early keeps the work queue clean and reduces duplicate issues.</p><h3>Options and trade-offs</h3><ul><li>Categories: group conversations by purpose. Each category can have a format such as announcement, Q&amp;A, or open-ended. Check the current category limit in the docs.</li><li>Pinning: highlight canonical threads such as the FAQ or onboarding guide.</li><li>Accepted answers and upvotes: surface solutions and priorities. They need moderator attention to stay useful.</li><li>Conversion: move a thread from issue to discussion, or back, when its nature changes.</li></ul><h3>My take</h3><p>Keep a small set of categories, pin the threads newcomers need first, and use a category form for Q&amp;A so questions arrive with the details needed to answer them.</p><p>Decision lens: new-contributor friction and review latency.</p><p>Example setup: categories for Announcements, Q&amp;A, and Ideas. The FAQ and a first-thirty-minutes guide are pinned. The Q&amp;A category uses a form that asks for version, steps to reproduce, and expected versus actual behavior.</p><h3>Template</h3><p><strong>.github/DISCUSSION_TEMPLATE/qna.yml:</strong> a category form with prompts for version, steps, expected behavior, and actual behavior.</p><p><strong>Welcome post:</strong> the purpose of the space, the code of conduct, and the rules for converting between issues and discussions.</p><p><strong>Category setup:</strong> Announcements restricted to maintainers, and Q&amp;A with accepted answers enabled.</p><h3>Checklist</h3><ol><li>Enable Discussions and create categories.</li><li>Pin the FAQ and onboarding threads.</li><li>Add a Q&amp;A category form.</li><li>Write down the conversion rules between issues and discussions.</li><li>Review the category setup each quarter.</li></ol><h3>Common mistakes</h3><ul><li>Running without categories, which makes threads hard to find.</li><li>Not pinning canonical answers, so the same questions keep coming back.</li><li>Never converting issues, so the work queue fills with general chat.</li></ul><h3>Where this doesn’t apply</h3><ul><li>Organizations required to use an external forum or ticketing system.</li></ul><h3>How to get involved</h3><ul><li>Good first issue: propose a new pinned FAQ entry.</li><li>Discussion: what should the Q&amp;A form ask first?</li></ul><h3>Sources</h3><ul><li>Managing categories for discussions: <a href="https://docs.github.com/en/discussions/managing-discussions-for-your-community/managing-categories-for-discussions">https://docs.github.com/en/discussions/managing-discussions-for-your-community/managing-categories-for-discussions</a>. Formats and limits.</li><li>Managing discussions: <a href="https://docs.github.com/en/discussions/managing-discussions-for-your-community/managing-discussions">https://docs.github.com/en/discussions/managing-discussions-for-your-community/managing-discussions</a>. Pinning, permissions, and transfers.</li><li>Collaborating with maintainers using discussions: <a href="https://docs.github.com/en/discussions/collaborating-with-your-community-using-discussions/collaborating-with-maintainers-using-discussions">https://docs.github.com/en/discussions/collaborating-with-your-community-using-discussions/collaborating-with-maintainers-using-discussions</a>. Accepted answers, upvotes, and conversion.</li><li>Category forms: <a href="https://docs.github.com/en/discussions/managing-discussions-for-your-community/creating-discussion-category-forms">https://docs.github.com/en/discussions/managing-discussions-for-your-community/creating-discussion-category-forms</a>.</li></ul><p><em>Originally published at </em><a href="https://www.imshubh.com/articles/github/discussions-as-your-community-front-door.html"><em>https://www.imshubh.com</em></a><em> on October 15, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12ed1c370078" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Language and Vision: secure triage pipelines (illustrative)]]></title>
            <link>https://imshubh5.medium.com/ai-language-and-vision-secure-triage-pipelines-illustrative-7af26d3b0663?source=rss-4462d5d148f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/7af26d3b0663</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[vision]]></category>
            <category><![CDATA[oci]]></category>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[oracle]]></category>
            <dc:creator><![CDATA[Shubham Anandani]]></dc:creator>
            <pubDate>Sat, 10 Oct 2026 19:00:50 GMT</pubDate>
            <atom:updated>2026-10-29T21:15:50.208Z</atom:updated>
            <content:encoded><![CDATA[<h4>Wiring OCI Language and Vision into a document triage flow while keeping personal data out of places it should not be.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HO-kXDiqK1tyDI8qZyfLXw.png" /></figure><h3>Problem</h3><p>Support tickets, scanned forms and screenshots all contain personal data, and the people asking for automated triage rarely want to train a model. OCI Language and Vision offer pretrained models behind regional endpoints, which is a good fit when the goal is to route and summarize rather than to research.</p><p>The design question is where personal data goes. I wanted the masking to happen before anything gets stored or forwarded, and I wanted a trail showing which call touched which document.</p><h3>Options and trade-offs</h3><ul><li>Language service (entities, sentiment, key phrases, PII detection): good for text pipelines, as long as PII is masked before downstream storage.</li><li>Vision (document and image analysis, text detection, object detection): good for PDFs and images, with batch jobs and custom models available.</li><li>Inline versus asynchronous jobs: inline is simpler for a small payload, and batch jobs backed by Object Storage scale better.</li></ul><h3>My recommendation</h3><p>Use inline calls for small, interactive requests and Object Storage backed jobs for volume. Run PII masking first in the text path. Store only the masked output, keep request identifiers for audit, and set a retention period before the first production run.</p><h3>Worked example</h3><p>Masking personal data in a piece of text with the Language service. This uses the PII entity detection call with a masking option, and it needs a Python environment with the OCI SDK configured for your tenancy.</p><pre>import oci<br> <br>config = oci.config.from_file()<br>language = oci.ai_language.AIServiceLanguageClient(config)<br> <br>doc = oci.ai_language.models.TextDocument(<br>    key=&quot;example-document&quot;, text=ticket_text, language_code=&quot;en&quot;)<br> <br>resp = language.batch_detect_language_pii_entities(<br>    oci.ai_language.models.BatchDetectLanguagePiiEntitiesDetails(<br>        documents=[doc], masking={&quot;ALL&quot;: {&quot;mode&quot;: &quot;MASK&quot;}}))<br> <br>masked = resp.data.documents[0].masked_text   # store this, not ticket_text</pre><p>Analyzing a scanned document in Object Storage with Vision. The result is text you can pass to the masking step above.</p><pre>vision = oci.ai_vision.AIServiceVisionClient(config)<br> <br>result = vision.analyze_document(<br>    oci.ai_vision.models.AnalyzeDocumentDetails(<br>        compartment_id=compartment_ocid,<br>        document=oci.ai_vision.models.ObjectStorageDocumentDetails(<br>            source=&quot;OBJECT_STORAGE&quot;,<br>            namespace_name=namespace,<br>            bucket_name=input_bucket,<br>            object_name=&quot;scan-0007.pdf&quot;),<br>        features=[oci.ai_vision.models.DocumentTextDetectionFeature(<br>            feature_type=&quot;TEXT_DETECTION&quot;)]))<br> <br>print(result.headers.get(&quot;opc-request-id&quot;))   # keep for the audit trail</pre><p>For larger volumes, create a document job through the CLI or SDK with input and output locations in Object Storage, then poll for completion. Run the workload as an instance or resource principal and grant it only the Language, Vision and bucket access it needs.</p><h3>Checklist</h3><ol><li>Mask or remove PII before storing any text.</li><li>Use inline calls for small payloads and batch jobs for volume.</li><li>Keep outputs only as long as you need them.</li><li>Record request IDs and compartment ownership for audit.</li><li>Check supported file formats and languages before choosing a feature.</li><li>Use instance or resource principals instead of keys in code.</li></ol><h3>Where this doesn’t apply</h3><p>Fully air-gapped environments cannot call these cloud endpoints. They need models that run locally instead.</p><h3>One honest limitation</h3><p>Bulk analysis produces a lot of metadata and intermediate output. Decide on redaction and retention rules up front, or the results bucket turns into its own data-protection problem.</p><h3>Sources</h3><ul><li><a href="https://docs.oracle.com/en-us/iaas/Content/language/using/pii.htm">OCI Documentation: Language, Detecting Personally Identifiable Information</a></li><li><a href="https://docs.oracle.com/en-us/iaas/Content/vision/using/home.htm">OCI Documentation: Vision, Document AI Overview</a></li><li>OCI Python SDK Reference: <a href="https://docs.oracle.com/en-us/iaas/tools/java/latest/com/oracle/bmc/ailanguage/AIServiceLanguageClient.html">AIServiceLanguageClient</a> and <a href="https://docs.oracle.com/en-us/iaas/tools/java/latest/com/oracle/bmc/aivision/AIServiceVisionClient.html">AIServiceVisionClient</a></li></ul><p><em>Originally published at </em><a href="https://www.imshubh.com/articles/oracle-ace/ai-language-and-vision-secure-triage-pipelines-illustrative.html"><em>https://www.imshubh.com</em></a><em> on October 10, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7af26d3b0663" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Migrating to Microsoft Entra Verified ID]]></title>
            <link>https://imshubh5.medium.com/migrating-to-microsoft-entra-verified-id-1d05d2d4836f?source=rss-4462d5d148f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d05d2d4836f</guid>
            <category><![CDATA[credentials]]></category>
            <category><![CDATA[entra-id]]></category>
            <category><![CDATA[identity]]></category>
            <category><![CDATA[standards]]></category>
            <category><![CDATA[azure]]></category>
            <dc:creator><![CDATA[Shubham Anandani]]></dc:creator>
            <pubDate>Sat, 03 Oct 2026 19:00:35 GMT</pubDate>
            <atom:updated>2026-10-31T00:38:45.219Z</atom:updated>
            <content:encoded><![CDATA[<h4>A neutral playbook for issuing and verifying user-owned credentials with open standards, and wiring the verification step into an existing app.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j6MgvMpYUpdG0xOFQj6yNA.png" /></figure><h3>Problem</h3><p>Many apps verify identity attributes with a bespoke token: a signed JWT that only the issuing system can produce and only your app can parse. That locks the user into one issuer’s flow and forces every verifier to build a custom integration. Microsoft Entra Verified ID uses open standards (decentralized identifiers, W3C verifiable credentials, OpenID for Verifiable Credentials) so a person can hold a credential in a wallet, such as Microsoft Authenticator, and present it to any verifier that trusts the issuer.</p><h3>Options and trade-offs</h3><ul><li>Issuer setup: bind a decentralized identifier to your domain (did:web), keep signing keys in Key Vault, grant the Request Service the permissions it needs, and define a credential contract (display and rules). The result is portable credentials, at the cost of setup steps and a dependency on a wallet.</li><li>Verifier setup: a separate app, ideally in a separate tenant from the issuer, that creates presentation requests, receives callbacks and validates what comes back. It gets privacy-respecting, user-approved presentations instead of passwords or shared secrets.</li><li>Hybrid designs: where a server must query an issuer continuously, user presentation is a poor fit. Combine it with server-side checks instead of replacing them.</li></ul><h3>My recommendation</h3><p>Migrate one low-risk attribute first, such as proof of employment or membership, and keep the existing check running in parallel. Verify the credential’s issuer, signature and status, and accept only the claims you need. Expand once the flow is reliable.</p><h3>Minimal working example</h3><p>The verifier flow has three parts: get a token for the Request Service, create a presentation request, and handle the callback.</p><p>Step 1: get an access token with the client credentials flow, using the Verifiable Credentials Service Request scope (confirm the exact scope value in the current docs):</p><pre>curl -s -X POST &quot;https://login.microsoftonline.com/&lt;tenant-id&gt;/oauth2/v2.0/token&quot; \<br>  -d &quot;client_id=&lt;app-id&gt;&quot; \<br>  -d &quot;client_secret=&lt;secret-or-use-a-certificate&gt;&quot; \<br>  -d &quot;grant_type=client_credentials&quot; \<br>  -d &quot;scope=3db474b9-6a0c-4840-96ac-1fceb342124f/.default&quot;</pre><p>Step 2: create a presentation request:</p><pre>POST https://verifiedid.did.msidentity.com/v1.0/verifiableCredentials/createPresentationRequest<br>Content-Type: application/json<br>Authorization: Bearer &lt;token&gt;<br><br>{<br>  &quot;authority&quot;: &quot;did:web:verifier.example.com&quot;,<br>  &quot;includeQRCode&quot;: true,<br>  &quot;registration&quot;: { &quot;clientName&quot;: &quot;Example Verifier&quot; },<br>  &quot;callback&quot;: {<br>    &quot;url&quot;: &quot;https://verifier.example.com/api/presentation-callback&quot;,<br>    &quot;state&quot;: &quot;&lt;unique-request-id&gt;&quot;,<br>    &quot;headers&quot;: { &quot;api-key&quot;: &quot;&lt;shared-callback-secret&gt;&quot; }<br>  },<br>  &quot;requestedCredentials&quot;: [<br>    {<br>      &quot;type&quot;: &quot;ProofOfEmployment&quot;,<br>      &quot;purpose&quot;: &quot;Confirm your employer before granting access&quot;,<br>      &quot;acceptedIssuers&quot;: [ &quot;did:web:issuer.example.com&quot; ]<br>    }<br>  ]<br>}</pre><p>The response includes a QR code and a deep link for the wallet. Step 3: handle the callback and authorize only on a verified presentation:</p><pre>// Callback handler (framework-agnostic sketch)<br>void onCallback(String apiKeyHeader, JsonNode body) {<br>    if (!MessageDigest.isEqual(apiKeyHeader.getBytes(UTF_8), EXPECTED_KEY.getBytes(UTF_8))) {<br>        throw new SecurityException(&quot;bad callback key&quot;);<br>    }<br>    String status = body.path(&quot;requestStatus&quot;).asText();<br>    switch (status) {<br>        case &quot;request_retrieved&quot;      -&gt; markScanned(body.path(&quot;state&quot;).asText());<br>        case &quot;presentation_verified&quot;  -&gt; grantAccess(body.path(&quot;state&quot;).asText(),<br>                                                     body.path(&quot;verifiedCredentialsData&quot;));<br>        case &quot;presentation_error&quot;     -&gt; markFailed(body.path(&quot;state&quot;).asText());<br>        default                       -&gt; { /* ignore unknown statuses */ }<br>    }<br>}</pre><p>Test it: run the flow with a test credential and confirm access is granted only after presentation_verified. Then present a credential from an issuer that is not in acceptedIssuers and confirm it is rejected.</p><h3>Checklist</h3><ul><li>Use did:web with domain binding, serve it over HTTPS, and avoid redirects on the well-known path.</li><li>Keep signing keys in Key Vault and plan rotation before you need it.</li><li>Check the issuer DID against an allowlist, and confirm the credential status, not just the signature.</li><li>Use a unique state value per request, and authenticate callbacks with a secret you compare in constant time.</li><li>Request only the claims you will use, and explain the purpose to the user.</li><li>Align on the supported standards (VC Data Model, OpenID4VC, Presentation Exchange) so you can work with other wallets and verifiers.</li></ul><h3>Where this doesn’t apply</h3><p>Scenarios that need continuous server-side queries to an issuer rather than a user presenting a credential. Use a hybrid design there.</p><h3>Sources</h3><ul><li><a href="https://learn.microsoft.com/en-us/entra/verified-id/decentralized-identifier-overview">Verified ID introduction and standards</a></li><li><a href="https://learn.microsoft.com/en-us/entra/verified-id/presentation-request-api">Request Service REST API presentation specification</a></li><li><a href="https://learn.microsoft.com/en-us/entra/verified-id/verifiable-credentials-configure-tenant">Configure your tenant for Verified ID</a></li></ul><p><em>Originally published at </em><a href="https://www.imshubh.com/articles/microsoft/migrating-to-microsoft-entra-verified-id.html"><em>https://www.imshubh.com</em></a><em> on October 3, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d05d2d4836f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AKS confidential containers for model isolation]]></title>
            <link>https://imshubh5.medium.com/aks-confidential-containers-for-model-isolation-bf4fab5b3b1b?source=rss-4462d5d148f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf4fab5b3b1b</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[confidential-computing]]></category>
            <dc:creator><![CDATA[Shubham Anandani]]></dc:creator>
            <pubDate>Mon, 21 Sep 2026 19:00:45 GMT</pubDate>
            <atom:updated>2026-10-31T00:36:46.016Z</atom:updated>
            <content:encoded><![CDATA[<h4>What kata-cc isolates, how attestation ties to key release, and operational constraints.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1VO4P-cnIsYC3C8QuKEbRw.png" /></figure><h3>Problem</h3><p>Some AI workloads need runtime confidentiality: protect model artifacts and user data from the host OS/kernel and operators. AKS confidential containers (kata-cc) isolate the pod in a confidential utility VM with attestation and policy controls. Trade-offs include startup time, debugging limitations, and preview status constraints.</p><h3>Options and trade-offs</h3><ul><li>AKS confidential VM node pool: Node-level boundary; simpler lift-and-shift; not per-pod sandbox.</li><li>AKS confidential containers (kata-cc): Pod-level confidential sandbox, policy generator and attestation; more operational constraints; supports Azure Linux and specific VM SKUs; preview limitations apply.</li><li>ACI confidential containers: Container group boundary; suitable for event-driven jobs; fewer orchestration features than AKS.</li></ul><h3>Minimal working example</h3><p>Prereqs</p><ul><li>Azure CLI 2.44.1+; aks-preview and confcom extensions; Azure Linux; KataCcIsolation on node pool; enable workload identity and OIDC issuer if key release requires identity linkage.</li></ul><pre>az aks create --resource-group rg --name aks-cc \<br>  --kubernetes-version 1.25.0 \<br>  --os-sku AzureLinux \<br>  --node-vm-size Standard_DC8as_cc_v5 \<br>  --workload-runtime KataCcIsolation \<br>  --enable-oidc-issuer --enable-workload-identity</pre><p>Deploy consumer with attestation sidecar and policy Generate policy with confcom; apply as annotation; tie Key Vault key release to attestation measurement. Test: Remove kata-cc spec and policy; confirm ciphertext (no key release).</p><h3>Checklist</h3><ul><li>Confirm supported SKUs and OS; Azure Linux only for kata-cc at present.</li><li>Enable and maintain policy (do not use :latest tags because layers are measured).</li><li>Expect longer pod startup and limited troubleshooting (exec/stdio require policy change).</li><li>Integrate attestation with Key Vault for secure key release.</li></ul><h3>Where this doesn’t apply</h3><p>Windows node pools; or workloads requiring frequent interactive debugging incompatible with kata-cc constraints.</p><h3>Sources</h3><ul><li><a href="https://learn.microsoft.com/en-us/azure/aks/confidential-containers-overview">Confidential containers (Preview)</a></li><li><a href="https://learn.microsoft.com/en-us/azure/aks/deploy-confidential-containers-default-policy">Deploy AKS with confidential containers policy</a></li><li><a href="https://github.com/MicrosoftDocs/azure-docs/blob/main/articles/confidential-computing/confidential-containers.md">Confidential containers overview (Azure confidential computing)</a></li></ul><p><em>Originally published at </em><a href="https://www.imshubh.com/articles/microsoft/aks-confidential-containers-for-model-isolation.html"><em>https://www.imshubh.com</em></a><em> on September 21, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf4fab5b3b1b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[UCP pool tuning for resilience and validation]]></title>
            <link>https://imshubh5.medium.com/ucp-pool-tuning-for-resilience-and-validation-41bb064e0e57?source=rss-4462d5d148f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/41bb064e0e57</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[ucp]]></category>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[performance]]></category>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[Shubham Anandani]]></dc:creator>
            <pubDate>Fri, 18 Sep 2026 19:00:06 GMT</pubDate>
            <atom:updated>2026-10-28T02:40:22.555Z</atom:updated>
            <content:encoded><![CDATA[<h4>The handful of Universal Connection Pool settings I change first, and the arithmetic behind the sizes.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PHwk_8VpD0DqsanEBXmCpw.png" /></figure><h3>Problem</h3><p>UCP has dozens of properties, and the defaults work. What I wanted was predictable behavior under stress: callers that fail fast instead of hanging, bad connections that are caught before they reach the application, and a pool that does not quietly use up the database’s session budget.</p><h3>Options and trade-offs</h3><ul><li>A small pool with a modest maximum: gentle on the database, and it may add latency while the pool warms up.</li><li>A larger minimum or initial size: faster first requests, and idle sessions you are paying for.</li><li>Validation on borrow: safer, with a small cost on each borrow. A short trust window reduces that cost.</li></ul><h3>My recommendation</h3><p>Set the minimum and maximum sizes on purpose, turn on validation on borrow with a short trust window, and give callers a wait timeout. Then measure and adjust. Change one property at a time, so you know which change helped.</p><h3>Worked example</h3><p>Start from the database’s limit and work backwards. If a database can comfortably serve 200 sessions for this application and you run 8 service instances, a maximum of 20 per instance already reaches 160, which leaves room for failover and administration.</p><pre>PoolDataSource pds = PoolDataSourceFactory.getPoolDataSource();<br>pds.setConnectionFactoryClassName(&quot;oracle.jdbc.pool.OracleDataSource&quot;);<br>pds.setURL(&quot;&lt;jdbc_url&gt;&quot;);<br>pds.setUser(System.getenv(&quot;DB_USER&quot;));<br>pds.setPassword(System.getenv(&quot;DB_PASSWORD&quot;));<br> <br>// Sizing<br>pds.setInitialPoolSize(2);<br>pds.setMinPoolSize(2);<br>pds.setMaxPoolSize(20);<br> <br>// Resilience<br>pds.setValidateConnectionOnBorrow(true);<br>pds.setSecondsToTrustIdleConnection(5);   // skip re-validation for 5 s<br>pds.setConnectionWaitTimeout(3);          // seconds a caller waits for a connection<br>pds.setInactiveConnectionTimeout(300);    // release idle connections after 5 min</pre><p>To watch the pool, log the borrowed and available counts on a timer, or expose them through JMX:</p><pre>log.info(&quot;ucp borrowed={} available={}&quot;,<br>         pds.getBorrowedConnectionsCount(),<br>         pds.getAvailableConnectionsCount());</pre><p>If borrowed stays close to the maximum and callers start timing out, the first suspect is a slow query or a leaked connection, not the pool size.</p><h3>Checklist</h3><ol><li>Derive the maximum from the database’s session budget and the number of instances.</li><li>Turn on validation on borrow, and use a short trust window if the overhead matters.</li><li>Set a connection wait timeout so callers cannot hang.</li><li>Log or export the borrowed, available and waiting counts.</li><li>Test failover and a database restart.</li><li>Revisit sizes after load testing, in small steps.</li></ol><h3>Where this doesn’t apply</h3><p>Large Oracle RAC deployments that rely on Fast Application Notification and replay need high-availability features configured, and that is a separate tuning exercise.</p><h3>One honest limitation</h3><p>Validation costs a little on every borrow. Only widen the trust window after the basic reliability picture is clear, or you may hide the very failures you wanted to catch.</p><h3>Sources</h3><ul><li><a href="https://docs.oracle.com/en/database/oracle/oracle-database/21/jjucp/setting-ucp-properties.html">Oracle Universal Connection Pool Developer’s Guide: Setting Connection Pool Properties</a></li><li><a href="https://docs.oracle.com/en/database/oracle/oracle-database/21/jjuar/oracle/ucp/jdbc/PoolDataSource.html">Oracle UCP Java API Reference: PoolDataSource</a></li><li><a href="https://docs.oracle.com/en/database/oracle/oracle-database/21/jjucp/jmx-based-management.html">Oracle UCP Developer’s Guide: Monitoring the Pool with JMX</a></li></ul><p><em>Originally published at </em><a href="https://www.imshubh.com/articles/oracle-ace/ucp-pool-tuning-for-resilience-and-validation.html"><em>https://www.imshubh.com</em></a><em> on September 18, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41bb064e0e57" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Compose to a Public URL: Ports, Health, and Scale-to-Zero]]></title>
            <link>https://imshubh5.medium.com/from-compose-to-a-public-url-ports-health-and-scale-to-zero-16e570365b62?source=rss-4462d5d148f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/16e570365b62</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[deployment]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Shubham Anandani]]></dc:creator>
            <pubDate>Thu, 17 Sep 2026 19:00:39 GMT</pubDate>
            <atom:updated>2026-11-01T19:55:50.313Z</atom:updated>
            <content:encoded><![CDATA[<h4>What changes when a local demo needs a real address, and how to keep it close to free when nobody is looking at it.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rs5OxUH5mrqshhL7wLfLIA.png" /></figure><h3>Problem</h3><p>A local demo is easy. A public one raises new questions: which port is exposed, how the platform knows the app is healthy, what the first request does after a quiet night, and how to be sure a traffic spike does not turn into a surprise bill. You do not need a cluster for this. A managed container platform with scale-to-zero gives you a URL that costs almost nothing when idle.</p><h3>Options and trade-offs</h3><ul><li>Run a VM and keep it on: simple, but you pay for the idle hours.</li><li>Run a cluster: powerful, and far more than a demo needs.</li><li>Use a managed container platform with scale-to-zero: you accept a cold start in return for near-zero idle cost.</li></ul><h3>My recommendation</h3><p>Make the app platform-friendly first: it listens on a configurable port, has a health endpoint, and redirects the root path somewhere useful. Then deploy a digest-pinned image with a minimum of zero replicas, managed TLS, and budget alerts set well below the ceiling.</p><h3>Worked example</h3><p>A tiny Java server with no dependencies. It reads the port from the environment, answers a health check, and redirects the root path to the docs.</p><pre>import com.sun.net.httpserver.HttpExchange;<br>import com.sun.net.httpserver.HttpServer;<br><br>import java.io.IOException;<br>import java.io.OutputStream;<br>import java.net.InetSocketAddress;<br>import java.nio.charset.StandardCharsets;<br><br>public class Main {<br>    public static void main(String[] args) throws IOException {<br>        int port = Integer.parseInt(System.getenv().getOrDefault(&quot;PORT&quot;, &quot;8080&quot;));<br>        HttpServer server = HttpServer.create(new InetSocketAddress(port), 0);<br><br>        server.createContext(&quot;/health&quot;, ex -&gt; respond(ex, 200, &quot;application/json&quot;, &quot;{\&quot;status\&quot;:\&quot;ok\&quot;}&quot;));<br>        server.createContext(&quot;/docs&quot;, ex -&gt; respond(ex, 200, &quot;text/html&quot;, &quot;&lt;h1&gt;Docs&lt;/h1&gt;&quot;));<br>        server.createContext(&quot;/&quot;, ex -&gt; {<br>            if (&quot;/&quot;.equals(ex.getRequestURI().getPath())) {<br>                ex.getResponseHeaders().add(&quot;Location&quot;, &quot;/docs&quot;);<br>                ex.sendResponseHeaders(302, -1);<br>                ex.close();<br>            } else {<br>                respond(ex, 404, &quot;text/plain&quot;, &quot;not found&quot;);<br>            }<br>        });<br>        server.start();<br>    }<br><br>    private static void respond(HttpExchange ex, int status, String type, String body) throws IOException {<br>        byte[] bytes = body.getBytes(StandardCharsets.UTF_8);<br>        ex.getResponseHeaders().add(&quot;Content-Type&quot;, type);<br>        ex.sendResponseHeaders(status, bytes.length);<br>        try (OutputStream out = ex.getResponseBody()) {<br>            out.write(bytes);<br>        }<br>    }<br>}</pre><p>The deployment description is illustrative, since every platform has its own field names, but the shape is the same everywhere:</p><pre>{<br>  &quot;name&quot;: &quot;demo-app&quot;,<br>  &quot;image&quot;: &quot;registry.example.com/team/app@sha256:&lt;digest&gt;&quot;,<br>  &quot;containerPort&quot;: 8080,<br>  &quot;healthCheckPath&quot;: &quot;/health&quot;,<br>  &quot;ingress&quot;: { &quot;tls&quot;: true },<br>  &quot;autoscale&quot;: { &quot;minReplicas&quot;: 0, &quot;maxReplicas&quot;: 3 }<br>}</pre><pre>docker compose up --build<br>curl -i http://127.0.0.1:8080/<br>curl -s http://127.0.0.1:8080/health</pre><h3>Checklist</h3><ol><li>Read the port from the environment, and expose the one the platform expects.</li><li>Add a cheap health endpoint, and point the platform at it.</li><li>Redirect the root path to something useful.</li><li>Deploy by digest, with managed TLS.</li><li>Set minimum replicas to zero, and test the first request after idle.</li><li>Set a budget alert well under your ceiling, and send it somewhere you will see it.</li></ol><h3>Where this doesn’t apply</h3><p>If you need steady low latency, scale-to-zero is the wrong choice, because the first request after a quiet period will be slow.</p><h3>One honest limitation</h3><p>A cold start on a JVM service can take seconds. You can soften it with a smaller image and class-data sharing, but you cannot remove it, so decide whether a slow first visit is acceptable for the demo.</p><h3>Sources</h3><ul><li><a href="https://docs.docker.com/reference/compose-file/services/#ports">Docker Docs: Compose file reference (ports)</a></li><li><a href="https://docs.docker.com/reference/dockerfile/#healthcheck">Docker Docs: Dockerfile HEALTHCHECK</a></li><li><a href="https://docs.oracle.com/en/java/javase/21/docs/api/jdk.httpserver/com/sun/net/httpserver/package-summary.html">Oracle Java Documentation: com.sun.net.httpserver package</a></li></ul><p><em>Originally published at </em><a href="https://www.imshubh.com/articles/docker/from-compose-up-to-a-public-url.html"><em>https://www.imshubh.com</em></a><em> on September 17, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=16e570365b62" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Roadmaps Next to Your Code: GitHub Projects for Platform Teams]]></title>
            <link>https://imshubh5.medium.com/roadmaps-next-to-your-code-github-projects-for-platform-teams-f7d2ae07ee06?source=rss-4462d5d148f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7d2ae07ee06</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[projects]]></category>
            <category><![CDATA[planning]]></category>
            <category><![CDATA[roadmaps]]></category>
            <dc:creator><![CDATA[Shubham Anandani]]></dc:creator>
            <pubDate>Tue, 15 Sep 2026 19:00:37 GMT</pubDate>
            <atom:updated>2026-11-05T05:30:14.521Z</atom:updated>
            <content:encoded><![CDATA[<h4>How to run a roadmap in GitHub Projects using table, board, and roadmap views, custom fields, and built-in automations.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wcy6wbRKyqye5F8RK8wyJw.png" /></figure><h3>Problem</h3><p>External roadmap tools fall out of date because they are not connected to issues and pull requests. GitHub Projects sits alongside issues and PRs and gives each team a view suited to its question: a prioritized backlog, the current iteration board, or a timeline roadmap.</p><h3>Options and trade-offs</h3><ul><li>Table view: dense and good for prioritization. It needs consistent field values.</li><li>Board view: a status-based layout for iteration planning. It works best with work-in-progress limits.</li><li>Roadmap view: a timeline across dates or iterations. It suits communicating schedules to others.</li><li>Built-in workflows: add items, set status, and archive without code. They are limited compared with custom automation.</li><li>Insights: charts for status and progress. Useful for a quick read, not a full reporting tool.</li></ul><h3>My take</h3><p>Use one organization-level project for the platform roadmap, keep tactical bug work out of it, and save a small set of views that answer the questions people actually ask.</p><p>Decision lens: review latency and team workload.</p><p>Example setup: a platform roadmap project with Priority, Estimate, Iteration, and Owner fields, auto-add filters for the relevant repositories, and three saved views: backlog by priority, the current iteration board, and the quarter roadmap.</p><h3>Template</h3><p><strong>Project fields:</strong> a single-select Priority field, a number field for Estimate, and an iteration field.</p><p><strong>Views:</strong> Table for the backlog, Board for the current iteration, and Roadmap for milestones.</p><p><strong>Workflows:</strong> auto-add issues with a chosen label, set new items to Todo, and archive items that have been Done for a set period.</p><p><strong>Project README:</strong> link the saved views and describe the naming and labeling rules.</p><h3>Checklist</h3><ol><li>Create an organization project and define the fields.</li><li>Save table, board, and roadmap views.</li><li>Configure auto-add and status workflows.</li><li>Add milestone markers to the roadmap view.</li><li>Document label and ownership conventions.</li><li>Set work-in-progress limits on the board.</li></ol><h3>Common mistakes</h3><ul><li>Mixing bug triage with strategic planning in one project. Split them.</li><li>Not saving views, so collaborators lose context.</li><li>Skipping automation, which lets status drift from reality.</li></ul><h3>Where this doesn’t apply</h3><ul><li>Teams required to use an external project management system. Mirror the data through the API if needed.</li></ul><h3>How to get involved</h3><ul><li>Good first issue: propose a saved view that would improve backlog triage.</li><li>Discussion: what fields should the roadmap track?</li></ul><h3>Sources</h3><ul><li>About Projects: <a href="https://docs.github.com/en/issues/planning-and-tracking-with-projects/learning-about-projects/about-projects">https://docs.github.com/en/issues/planning-and-tracking-with-projects/learning-about-projects/about-projects</a>. Views, fields, automation, and insights.</li><li>Quickstart for Projects: <a href="https://docs.github.com/en/issues/planning-and-tracking-with-projects/learning-about-projects/quickstart-for-projects">https://docs.github.com/en/issues/planning-and-tracking-with-projects/learning-about-projects/quickstart-for-projects</a>. Creating views, fields, and workflows.</li><li>Roadmaps generally available: <a href="https://github.blog/changelog/2025-03-22-roadmaps-in-projects-are-now-generally-available/">https://github.blog/changelog/2025-03-22-roadmaps-in-projects-are-now-generally-available/</a>. Roadmap view status and markers.</li></ul><p><em>Originally published at </em><a href="https://www.imshubh.com/articles/github/roadmaps-next-to-your-code-github-projects-for-platform-teams.html"><em>https://www.imshubh.com</em></a><em> on September 15, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7d2ae07ee06" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>