<?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 Reza on Medium]]></title>
        <description><![CDATA[Stories by Reza on Medium]]></description>
        <link>https://medium.com/@reznetdevops?source=rss-6de0315db66c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Lt1rWP99wlnXlcQoNeZc_g.png</url>
            <title>Stories by Reza on Medium</title>
            <link>https://medium.com/@reznetdevops?source=rss-6de0315db66c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 18:50:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@reznetdevops/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[Why Fedshi is moving to “You build, you run” - how Platform Engineering (IDP) makes it safe and…]]></title>
            <link>https://reznetdevops.medium.com/why-fedshi-is-moving-to-you-build-you-run-how-platform-engineering-idp-makes-it-safe-and-9e9b3fdad229?source=rss-6de0315db66c------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e9b3fdad229</guid>
            <category><![CDATA[idp]]></category>
            <category><![CDATA[platform-engineering]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Reza]]></dc:creator>
            <pubDate>Sun, 01 Feb 2026 18:04:56 GMT</pubDate>
            <atom:updated>2026-02-01T18:04:56.207Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why Fedshi is moving to “You build, you run” - risks, reality, and how Platform Engineering (IDP) makes it safe and fast</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wyjGypNw_d8LcYDWxcrrxw.png" /></figure><p>Fedshi is changing. Our leadership has decided to collapse the traditional handoff between Product and Tech: teams will be feature-owned end-to-end. A backend engineer will be able to ship a front-end improvement. A product manager can prototype, code, and promote a sub-product. The objective is clear: remove handover cost, shorten feedback loops, and accelerate releases, powered by modern developer tooling and AI (Cursor, Lovable and … ).</p><p>That ambition is right for a fast, people-centric company like Fedshi, but it isn’t risk-free. As Fedshi’s DevOps &amp; Platform engineer, I flagged the tensions in our meeting: integration complexity, Zero Trust &amp; compliance, uncontrolled AI/tool spend, enforcing best practices and, critically, the question of “how we’ll run this in the cloud era” given our AWS/GCP + Kubernetes landscape.</p><p>The pragmatic, low-risk way to deliver the velocity leaders want is to pair the “You build, you run” operating model with a robust internal developer platform (IDP) and Platform Engineering practices. Below I explain the risks, the mitigations, and the specific platform architecture that makes ownership safe, auditable, and fast, while preserving security, cost control and operational excellence.</p><h3>The leadership goal (short)</h3><p>Build cross-disciplinary feature teams where each team <strong>owns</strong> the feature lifecycle: design → code → test → deploy → run → iterate. AI agents and CDEs (cloud development environments) are expected to accelerate delivery and reduce toil.</p><h3>The key risks (and why they matter)</h3><p><strong>Integration cost &amp; complexity</strong></p><ul><li>Connecting new workflows to legacy services, on-prem or third-party systems, or multi-cloud infrastructure can create brittle, costly glue code and slow teams down.</li></ul><p><strong>Zero Trust &amp; security / compliance</strong></p><ul><li>Wider access to production data and systems increases blast radius. “Everyone can run” must not mean “everyone can access everything.”</li></ul><p><strong>AI/tooling spend &amp; uncontrolled usage</strong></p><ul><li>Per-seat, per-token or per-API costs can escalate rapidly if guardrails are missing.</li></ul><p><strong>Drift from best practices</strong></p><ul><li>When many people can deploy, inconsistent patterns, poor SLOs, and untested releases can increase failure rates.</li></ul><p><strong>Observability &amp; operational readiness</strong></p><ul><li>Feature teams must run what they build with consistent monitoring, alerts, and runbooks, otherwise MTTD/MTTR will spike.</li></ul><p><strong>Cost of running (cloud cost)</strong></p><ul><li>Multi-cloud + Kubernetes without governance leads to waste (idle clusters, oversized instances, expensive images).</li></ul><p><strong>Data privacy &amp; customer trust</strong></p><ul><li>AI agents that access customer data must respect PII rules and regulatory constraints.</li></ul><h3>Platform engineering + IDP: the solution in one sentence</h3><p>Create a developer-centric Internal Developer Platform (IDP) that <strong>provides safe, opinionated golden paths</strong> (prebuilt workflows, environments and policies) so anyone can build, test, release and operate features consistently — with security, auditing, cost controls and cloud-native runtime primitives baked in.</p><h3>What the IDP looks like at Fedshi (practical architecture)</h3><p><strong>Identity &amp; Access Fabric</strong></p><ul><li>Single sign-on (OIDC/SCIM) + centralized identity provider.</li><li>RBAC + Attribute-Based Access Control for ephemeral elevation.</li><li>Just-In-Time credentials for production access, audited by default.</li></ul><p><strong>Software catalog &amp; Golden Paths</strong></p><ul><li>Catalog of approved templates (microservice, function, front-end widget, data job).</li><li>One-click instantiate: developer clicks template → a Cloud Development Environment (CDE) is provisioned with IDE, CIS packages, test data and DB access stubs.</li><li>Golden paths ensure teams follow approved architectures (logging, tracing, SLOs, security scanners, infra as code patterns).</li></ul><p><strong>Cloud Development Environment (CDE)</strong></p><ul><li>Browser-based or remote IDE preconfigured with credentials scoped to the dev environment.</li><li>Local emulation of managed services (or lightweight test doubles) and seeded sample data.</li><li>Integrated AI code agent that is <em>context aware</em> (repo, ticket, runtime context).</li></ul><p><strong>Management Control Plane (MCP)</strong></p><ul><li>A central control plane (what you called the “MCP server”) that brokers actions between the AI agent, Git, Kubernetes clusters, cloud APIs (AWS/GCP), databases and CI/CD.</li><li>Enforces policy → translates developer intent into approved, auditable actions.</li></ul><p><strong>GitOps + CICD</strong></p><ul><li>Declarative pipelines (Argo CD / Flux / Tekton / GitHub Actions) controlled by platform.</li><li>Automated promotion paths: dev → staging → canary → prod. Rollback &amp; progressive delivery (canaries, feature flags).</li></ul><p><strong>Policy by Design: OPA / Gatekeeper / Policy Engine</strong></p><ul><li>All infra &amp; manifests validated against policies (security, cost, compliance) before apply.</li><li>Runtime policy enforcement using service mesh + mTLS.</li></ul><p><strong>Secrets &amp; Data Protection</strong></p><ul><li>Central secrets store (Vault or cloud KMS).</li><li>Tokenised access for AI agents; redaction and request-level approvals for customer data access.</li><li>Data handling rules: synthetic data for development, logging redaction, PII minimization.</li></ul><p><strong>Observability &amp; SLOs</strong></p><ul><li>OpenTelemetry instrumentation baked into templates.</li><li>Centralized tracing, metrics and logs with SLO dashboards and alerting.</li><li>Error budgets &amp; SLO-driven rollout decisions.</li></ul><p><strong>Cost management</strong></p><ul><li>Tagging standards enforced by platform.</li><li>Automated rightsizing recommendations, spot/commitment policies, and quotas per team.</li><li>Chargeback/ showback and CI agent quotas for AI tool usage.</li></ul><p><strong>AI governance</strong></p><ul><li>API gateways and policy checks for LLM usage.</li><li>Data filtering &amp; prompt sanitization; access logging for all model calls.</li><li>Token limits, per-team budgets and approval workflows.</li></ul><h3>All the benefits</h3><p><strong>Velocity &amp; developer experience</strong></p><ul><li>One-click environment spin up (CDE) reduces onboarding and context switching.</li><li>AI agents accelerate routine coding, tests, and ops tasks.</li><li>Golden paths remove decision fatigue, teams ship correct, consistent solutions faster.</li></ul><p><strong>Quality &amp; reliability</strong></p><ul><li>Standardized templates include SLOs, tests, security scans, and fallback logic.</li><li>GitOps &amp; progressive delivery lower change failure rate and shorten MTTR.</li></ul><p><strong>Security &amp; compliance</strong></p><ul><li>Least privilege enforced through centralized identity and JIT access.</li><li>Policy as code ensures compliance checks before any change reaches production.</li><li>Audit trails for every action (AI or human).</li></ul><p><strong>Operational clarity</strong></p><ul><li>Common observability and tracing make incidents diagnosable across teams.</li><li>SRE guardrails and runbooks attached to services at creation time.</li></ul><p><strong>Cost control &amp; predictability</strong></p><ul><li>Platform enforces tagging, quotas and automated cost recommendations.</li><li>Centralized billing visibility and per-team budgets for AI tooling.</li></ul><p><strong>Developer autonomy with safety</strong></p><ul><li>Teams get full ownership without the historical handover friction, but within platform-enforced boundaries that prevent dangerous lateral movement.</li></ul><p><strong>Faster feedback loops</strong></p><ul><li>Product ↔ customers loops shorten because teams can deploy features and observe customer behavior directly (feature flags, experiments).</li></ul><p><strong>Reduced cognitive load for ops</strong></p><ul><li>Platform teams abstract cloud and infra complexity, developers reuse vetted patterns rather than reinventing infra.</li></ul><p><strong>Consistency across multi-cloud</strong></p><ul><li>IDP abstracts AWS/GCP differences via common declarative APIs and operators (Crossplane/terraform operators).</li></ul><p><strong>Auditability &amp; traceability</strong></p><ul><li>Every deployment and AI action is logged and traceable to a user/agent and a pull request, vital for incident reviews and compliance.</li></ul><h3>How to mitigate the top risks</h3><ul><li><strong>Integration cost</strong>: invest in reusable connectors and adapters (e.g., Crossplane providers, Kubernetes operators). Keep the platform API small and stable; provide SDKs for edge cases.</li><li><strong>Zero Trust</strong>: enforce mTLS, service identity, and short-lived credentials; require explicit approvals for access to production datasets.</li><li><strong>AI tool spend</strong>: implement quotas and per-project budgets; route model calls through centralized proxies that can throttle and monitor.</li><li><strong>Best practices drift</strong>: bake policies and tests into templates; gate merges with automated policy checks (OPA) and CI security scans (SAST/SCA/DAST).</li><li><strong>Operational readiness</strong>: require SLOs, runbooks, and monitoring in service templates; fail PR validation if runbook or SLO missing.</li><li><strong>Cloud cost</strong>: require tags, enforce quotas, provide automated rightsizing and spot strategies, and run periodic cost reviews.</li><li><strong>Data privacy</strong>: redact PII in logs, use synthetic data for dev, and add mandatory approval workflows for any agent that requests customer data.</li></ul><h3>Success metrics to track</h3><ul><li>Deployment frequency (increase).</li><li>Lead time for changes (decrease).</li><li>Change failure rate (maintain or decrease).</li><li>Mean time to recovery (MTTR) (decrease).</li><li>Cost per feature / cloud spend trending → baseline + improvement.</li><li>Number of policy violations prevented by platform.</li><li>Developer satisfaction / time to first commit in new environments.</li></ul><h3>Final thoughts: the tradeoff is intentional</h3><p>Leaders want speed; engineers want ownership; customers want reliability. Platform engineering reconciles these priorities by <strong>moving governance left</strong> and providing safe, opinionated defaults that let teams move fast without multiplying risk.</p><p>For Fedshi, a fast-moving, people-first social commerce platform operating in Iraq’s dynamic market, an IDP is less a luxury and more a strategic enabler: it preserves the benefits of “You build, you run” while controlling blast radius, costs, and compliance. If we implement the architecture above with clear KPIs and an iterative rollout, we unlock genuine product velocity while keeping our customers’ trust and our cloud bill under control.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e9b3fdad229" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“io.Reader” in Go]]></title>
            <link>https://reznetdevops.medium.com/io-reader-in-go-f5a6cf96b7e8?source=rss-6de0315db66c------2</link>
            <guid isPermaLink="false">https://medium.com/p/f5a6cf96b7e8</guid>
            <category><![CDATA[go]]></category>
            <category><![CDATA[golang]]></category>
            <dc:creator><![CDATA[Reza]]></dc:creator>
            <pubDate>Wed, 04 Dec 2024 16:55:05 GMT</pubDate>
            <atom:updated>2024-12-04T16:55:05.503Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/701/1*lw6Dqrbj-61-HxNn-1u53Q.jpeg" /></figure><p>The io package in Go provides essential interfaces and utilities for performing input and output operations. It is widely used for abstracting data streams, enabling developers to work with files, network connections, memory buffers, and more, in a unified way.</p><h3><strong>Key Concepts in the io Package</strong></h3><p>io.Reader<strong> Interface </strong>:</p><p>The Reader interface is foundational in the io package and defines how data is read from a stream.</p><p><strong>Definition:</strong></p><pre>type Reader interface {<br>    Read(p []byte) (n int, err error)<br>}</pre><p>• <strong>How it works:</strong></p><p>• Read reads data into the byte slice p and returns:</p><ul><li><em>n</em> : Number of bytes read.</li><li><em>err </em>: Any error encountered (e.g., <em>io.EOF</em> when the end of the stream is reached).</li></ul><p>• Examples of<strong> </strong><em>io.Reader</em><strong> </strong>implementations<strong>:</strong></p><ul><li><em>os.File</em> for reading files.</li><li><em>bytes.Buffer</em> and bytes.Reader for reading from memory.</li><li><em>net.Conn</em> for reading from network connections.</li></ul><blockquote>io.Read<strong> Function</strong></blockquote><blockquote>There is <strong>NO </strong>io.Read<strong> function</strong> in the standard library. Instead, the io package focuses on interfaces like Reader (for reading) and functions like io.ReadAll or io.Copy.</blockquote><blockquote>Developers often confuse <strong>Read</strong> (a method of Reader) with utility functions in the io package.</blockquote><h3><strong>io.Reader Use Cases</strong></h3><p>The <em>io.Reader</em> interface is used when you need to abstractly read data from any source without worrying about the underlying implementation.</p><p><strong>Example: Using io.Reader</strong></p><pre>func readFromReader(r io.Reader) {<br>    buf := make([]byte, 1024) // Allocate a buffer<br>    for {<br>        n, err := r.Read(buf) // Read data into the buffer<br>        if err == io.EOF {<br>            break // End of file<br>        }<br>        fmt.Print(string(buf[:n])) // Print the data read<br>    }<br>}<br><br>// Example usage<br>file, _ := os.Open(&quot;example.txt&quot;) // Open a file<br>readFromReader(file)             // Pass the file as io.Reader</pre><p>In this example The function can accept any <em>io.Reader</em>, making it reusable for files, network streams, or buffers.</p><h3><strong>Common Methods and Functions in the io Package</strong></h3><p>The io package provides utility functions to work with io.Reader and other interfaces:</p><p><strong>1. io.ReadAll</strong></p><ul><li>Reads all data from an io.Reader into memory.</li><li><strong>Definition:</strong></li></ul><pre>func ReadAll(r io.Reader) ([]byte, error)</pre><ul><li><strong>Use Case:</strong> When you need to read the entire content at once.</li><li><strong>Example:</strong></li></ul><pre>file, _ := os.Open(&quot;example.txt&quot;)<br>content, _ := io.ReadAll(file) // Reads the entire file into memory<br>fmt.Println(string(content))</pre><p><strong>2. io.Copy</strong></p><ul><li>Copies data from an io.Reader to an io.Writer.</li><li><strong>Definition:</strong></li></ul><pre>func Copy(dst io.Writer, src io.Reader) (written int64, err error)</pre><ul><li><strong>Use Case:</strong> When transferring data between streams.</li><li><strong>Example:</strong></li></ul><pre>file, _ := os.Open(&quot;example.txt&quot;)<br>io.Copy(os.Stdout, file) // Copies file content to standard output</pre><p><strong>3. io.TeeReader</strong></p><ul><li>Wraps an io.Reader so that data read from it is written to another io.Writer.</li><li><strong>Definition:</strong></li></ul><pre>func TeeReader(r io.Reader, w io.Writer) io.Reader</pre><ul><li><strong>Use Case:</strong> When you want to read data and log or save it simultaneously.</li><li><strong>Example:</strong></li></ul><pre>var buf bytes.Buffer<br>r := io.TeeReader(os.Stdin, &amp;buf)<br>io.ReadAll(r) // Reads from stdin and writes to buf simultaneously<br>fmt.Println(&quot;Captured:&quot;, buf.String())</pre><p><strong>4. io.LimitReader</strong></p><ul><li>Wraps an io.Reader to limit the number of bytes that can be read.</li><li><strong>Definition:</strong></li></ul><pre>func LimitReader(r io.Reader, n int64) io.Reader</pre><ul><li><strong>Use Case:</strong> When you want to restrict the amount of data read from a source.</li><li><strong>Example:</strong></li></ul><pre>limited := io.LimitReader(os.Stdin, 10)<br>data, _ := io.ReadAll(limited) // Reads only the first 10 bytes from stdin<br>fmt.Println(string(data))</pre><p><strong>5. io.MultiReader</strong></p><ul><li>Combines multiple io.Readers into a single io.Reader.</li><li><strong>Definition:</strong></li></ul><pre>func MultiReader(readers ...io.Reader) io.Reader</pre><ul><li><strong>Use Case:</strong> When you want to concatenate multiple sources into one stream.</li><li><strong>Example:</strong></li></ul><pre>r1 := strings.NewReader(&quot;Hello, &quot;)<br>r2 := strings.NewReader(&quot;world!&quot;)<br>combined := io.MultiReader(r1, r2)<br>io.Copy(os.Stdout, combined) // Prints &quot;Hello, world!&quot;</pre><p><strong>6. io.Pipe</strong></p><ul><li>Creates an <strong>in-memory</strong> pipe for communication between a writer and a reader.</li><li><strong>Definition:</strong></li></ul><pre>func Pipe() (*PipeReader, *PipeWriter)</pre><ul><li><strong>Use Case:</strong> When you need to connect two goroutines where one writes and the other reads.</li><li><strong>Example:</strong></li></ul><pre>r, w := io.Pipe()<br>go func() {<br>    w.Write([]byte(&quot;Hello through the pipe!&quot;))<br>    w.Close()<br>}()<br>io.Copy(os.Stdout, r) // Reads and prints &quot;Hello through the pipe!&quot;</pre><h3><strong>io.Reader vs ReadAll vs Copy vs Others</strong></h3><p>Here’s a comparison to clarify their differences and use cases:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YudpvLlratU5dMhEkLLCsQ.png" /><figcaption>Genrated by ChatGPT</figcaption></figure><h3><strong>Summary</strong></h3><p>• <em>io.Reader</em> is an <strong>interface</strong> that provides a standard way to read data from streams.</p><p>• <em>io.ReadAll</em>, <em>io.Copy</em>, and others are <strong>utility functions</strong> that simplify specific tasks like reading all data, transferring data between streams, or limiting data.</p><p>• Use <em>io.Reader</em> when you want abstraction and reusability; use specific utilities for specialized use cases.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f5a6cf96b7e8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding the Relationship Between Slices and Arrays in Go]]></title>
            <link>https://reznetdevops.medium.com/understanding-the-relationship-between-slices-and-arrays-in-go-6647359761fc?source=rss-6de0315db66c------2</link>
            <guid isPermaLink="false">https://medium.com/p/6647359761fc</guid>
            <category><![CDATA[golang-development]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[golang-tutorial]]></category>
            <category><![CDATA[golang]]></category>
            <dc:creator><![CDATA[Reza]]></dc:creator>
            <pubDate>Fri, 15 Nov 2024 21:30:34 GMT</pubDate>
            <atom:updated>2024-11-15T21:30:34.422Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*KglbqDiNjYIn_Jk0MHgsaw.jpeg" /></figure><p>Slices in Go are closely tied to arrays. Under the hood, a slice is implemented with a reference to an underlying array. The capacity of a slice corresponds to the length of this array, and the slice essentially acts as a view over the array. Because of this relationship, modifying a slice can directly impact the underlying array.</p><p>However, when the slice’s capacity changes — usually due to operations like append — a new array is allocated, and the connection to the original array is severed. Let’s explore this with an example.</p><p>Here’s the code that demonstrates the relationship between slices and arrays:</p><pre>package main<br><br>import (<br> &quot;fmt&quot;<br>)<br><br>func modify(slice []string) {<br> slice[0] = &quot;Modified_in_function&quot;<br>}</pre><p>The modify function changes the first element of the input slice.</p><p><strong>Working with Arrays and Slices</strong></p><p>In the main function, we’ll define an array and experiment with slices that reference parts of this array.</p><pre>func main() {<br> arr := [4]string{&quot;Alpha&quot;, &quot;Beta&quot;, &quot;Gamma&quot;, &quot;Delta&quot;}<br> fmt.Println(&quot;arr:&quot;, arr)</pre><p>Here, we define an array named arr with four elements.</p><pre> var sliceA = arr[0:1]<br> fmt.Println(&quot;sliceA:&quot;, sliceA)<br> sliceA[0] = &quot;sliceA&quot;</pre><p>In this snippet, sliceA is connected to the first element of arr. After modifying sliceA, the corresponding element in arr is updated as well.</p><pre> var sliceB = arr[1:3]<br> fmt.Println(&quot;sliceB:&quot;, sliceB)<br> sliceB[0] = &quot;sliceB_0&quot;<br> sliceB[1] = &quot;sliceB_1&quot;</pre><p>Here, sliceB references arr[1] and arr[2]. When the values in sliceB are updated, the changes are reflected in the array.</p><pre> fmt.Println(&quot;arr after modifications:&quot;, arr)</pre><p>Even though arr wasn’t directly modified, its contents changed due to the updates in sliceA and sliceB.</p><p><strong>Slice Modifications Inside Functions</strong></p><pre> modify(sliceB)<br> fmt.Println(&quot;arr after function call:&quot;, arr)</pre><p>Passing sliceB to the modify function demonstrates that changes made to a slice — even within a function — will affect the underlying array.</p><p><strong>Capacity and Reconnection</strong></p><pre> fmt.Println(&quot;Capacity of sliceA:&quot;, cap(sliceA), &quot;Length of sliceA:&quot;, len(sliceA))<br> sliceA = append(sliceA, &quot;Extra1&quot;, &quot;Extra2&quot;, &quot;Extra3&quot;)<br> fmt.Println(&quot;sliceA after appends:&quot;, sliceA)<br> arr[0] = &quot;-Modified-&quot;</pre><p>When the capacity of sliceA increases due to appending elements, a new array is allocated, and sliceA is no longer connected to arr.</p><pre> sliceA = append(sliceA, &quot;Extra4&quot;)<br> fmt.Println(&quot;Capacity of sliceA:&quot;, cap(sliceA), &quot;Length of sliceA:&quot;, len(sliceA))<br> arr[0] = &quot;-AnotherModification-&quot;<br> arr[1] = &quot;-StillConnected-&quot;</pre><p>In this example, arr and sliceB remain connected because the capacity of sliceB hasn’t changed, but sliceA is now independent.</p><p><strong>Final Output</strong></p><pre> fmt.Println(&quot;sliceA:&quot;, sliceA)<br> fmt.Println(&quot;arr:&quot;, arr)<br> fmt.Println(&quot;sliceB:&quot;, sliceB)<br>}</pre><p><strong>Output of the Code</strong></p><p>When you run the program, you’ll see the following output, illustrating how slices and arrays interact:</p><pre>arr: [Alpha Beta Gamma Delta]<br>sliceA: [Alpha]<br>sliceB: [Beta Gamma]<br>arr after modifications: [sliceA sliceB_0 sliceB_1 Delta]<br>arr after function call: [sliceA Modified_in_function sliceB_1 Delta]<br>Capacity of sliceA: 4 Length of sliceA: 1<br>sliceA after appends: [sliceA Extra1 Extra2 Extra3]<br>Capacity of sliceA: 8 Length of sliceA: 5<br>sliceA: [-Modified- Extra1 Extra2 Extra3 Extra4]<br>arr: [-AnotherModification- -StillConnected- sliceB_1 Delta]<br>sliceB: [-StillConnected- sliceB_1]</pre><p><strong>Key Takeaways</strong></p><p>1. Slices in Go reference an underlying array. Modifications to the slice affect the array.</p><p>2. If a slice’s capacity changes (e.g., via append), the connection to the original array is severed.</p><p>3. Understanding the connection between slices and arrays is crucial for avoiding unexpected side effects in Go programs.</p><p>This behavior makes slices both powerful and flexible, but developers must manage them carefully to ensure code correctness.</p><p><strong>Please follow me:</strong></p><p>X : <a href="https://twitter.com/RezNetDevOps">https://twitter.com/RezNetDevOps</a></p><p>Linkdein : <a href="https://www.linkedin.com/in/reznetdevops/">https://www.linkedin.com/in/reznetdevops/</a></p><p>#golang</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6647359761fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Designing Cloud-Native Systems for AI Applications: Challenges and Opportunities]]></title>
            <link>https://reznetdevops.medium.com/designing-cloud-native-systems-for-ai-applications-challenges-and-opportunities-038779997b85?source=rss-6de0315db66c------2</link>
            <guid isPermaLink="false">https://medium.com/p/038779997b85</guid>
            <category><![CDATA[intellectera]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[system-design-concepts]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[Reza]]></dc:creator>
            <pubDate>Thu, 14 Mar 2024 08:33:12 GMT</pubDate>
            <atom:updated>2024-03-14T08:34:04.418Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ElGNdqzpPBpSDn06wa07tw.png" /></figure><p>In the rapidly evolving world of Artificial Intelligence (AI), the need for robust, scalable, and efficient systems is more critical than ever. One approach that has gained significant traction is the design of cloud-native systems for AI applications. However, this approach comes with its own set of challenges.</p><h3><strong>What are Cloud-Native Systems?</strong></h3><p>Cloud-native systems are designed to embrace the principles of the modern cloud computing model. They leverage the advantages of the cloud — such as elasticity, scalability, and availability — to deliver high-performing, resilient, and efficient services. These systems are typically built using microservices architecture, where each service is loosely coupled, can be independently deployed, and communicates via APIs.</p><h3>Challenges in Designing Cloud-Native Systems for AI Applications</h3><p>Designing cloud-native systems for AI applications is not without its challenges. Here are some of the key issues:</p><p>1. <strong>Data Management</strong>: AI applications often require handling vast amounts of data. Managing this data in a cloud-native environment can be complex due to issues like data security, privacy, and governance.</p><p>2. <strong>Scalability</strong>: As the demand for AI applications grows, so does the need for systems that can scale efficiently. Designing systems that can seamlessly scale up or down based on demand is a significant challenge.</p><p>3. <strong>Integration</strong>: Integrating various microservices in a cloud-native system can be complex. Each service may use different data formats and protocols, making integration a challenging task.</p><p>4. <strong>Latency</strong>: For real-time AI applications, minimizing latency is crucial. However, the distributed nature of cloud-native systems can sometimes lead to increased latency.</p><p>5. <strong>Resource Management:</strong> Efficiently managing resources in a cloud-native environment can be challenging. AI applications often require significant computational resources, and ensuring these resources are optimally utilized is crucial.</p><h3>Intellectera: Addressing the Future Challenges</h3><p>At <a href="https://intellectera.ai/"><strong>Intellectera</strong></a>, we’ve built a completely microservices cloud-native and scalable infrastructure. Our system includes Indexing microservices, Chat flow microservices, and Data Source microservices, all communicating via an API gateway. This design allows us to effectively manage data, scale efficiently, integrate various services, minimize latency, and optimally utilize resources.</p><p>One of the key features of our platform is the development of large-scale indexing and chat pipelines. These pipelines serve users in both Conceptual and Precise queries across different use cases. The indexing pipeline is responsible for processing and organizing data, making it easily searchable and retrievable. On the other hand, the chat pipeline handles the interaction between the user and the AI, ensuring a smooth and efficient conversation.</p><p>However, we understand that each of these areas presents its own set of challenges. In our next post, we will delve deeper into how <a href="https://intellectera.ai/">Intellectera</a> tackles these challenges, ensuring we deliver a robust, efficient, and scalable AI platform.</p><p>Stay tuned for more insights into the exciting world of AI and cloud-native systems!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=038779997b85" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>