<?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 Sujeet Sharma on Medium]]></title>
        <description><![CDATA[Stories by Sujeet Sharma on Medium]]></description>
        <link>https://medium.com/@sujeetsharma1980?source=rss-c79c3bceb5d9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*U0wZG0IdrMwDsbeEYDtXDQ.jpeg</url>
            <title>Stories by Sujeet Sharma on Medium</title>
            <link>https://medium.com/@sujeetsharma1980?source=rss-c79c3bceb5d9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 06:59:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sujeetsharma1980/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[How We Replaced a Leading Newsletter Platform with an In-House System and Saved ~$150K a Year]]></title>
            <link>https://aws.plainenglish.io/how-we-replaced-a-leading-newsletter-platform-with-an-in-house-system-and-saved-150k-a-year-a89caab8383f?source=rss-c79c3bceb5d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/a89caab8383f</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[newsletter]]></category>
            <category><![CDATA[custom-solution]]></category>
            <category><![CDATA[cost-savings]]></category>
            <category><![CDATA[aws-cdk]]></category>
            <dc:creator><![CDATA[Sujeet Sharma]]></dc:creator>
            <pubDate>Mon, 02 Feb 2026 05:38:14 GMT</pubDate>
            <atom:updated>2026-02-02T05:38:14.633Z</atom:updated>
            <content:encoded><![CDATA[<h3>Email is one of those systems that feels deceptively simple — until the invoice arrives.</h3><p>For us, sending daily newsletters to roughly <strong>1.5 million users</strong> through a <strong>leading customer engagement platform</strong> was costing close to <strong>$200K per year</strong>. The platform worked well, but when we broke it down, the core workflow was straightforward:</p><blockquote><em>Store content → choose an audience → send email → track engagement</em></blockquote><p>We already had:</p><ul><li>A <strong>leading analytics / CDP platform</strong> for user data, segmentation, and reporting</li><li>A mature <strong>React-based product ecosystem</strong></li><li>An internal editorial workflow</li></ul><p>So we asked a simple question:</p><blockquote>What if we owned the pipeline and only paid for the pieces we couldn’t — or didn’t want to — build ourselves?</blockquote><p>A year later, we send the same volume on an in-house platform for <strong>~$50K per year</strong>, saving <strong>~$150K annually</strong>, while retaining everything that actually matters: segmentation, scheduling, analytics, and a solid editor experience.</p><p>Here is the high level architecture and I will explain the flows one by one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CvDs-MQjJoBOZMBjxC_6Nw.png" /></figure><h4>Audience ingestion Flow</h4><ul><li><strong>CDP</strong> exports audience segments on a schedule (e.g. hourly).</li><li>Each export is a CSV (or similar) with user/audience fields (e.g. cdp_id, user_id, email, segment/flags). That file is written into an S3 bucket.</li><li>So the source of truth for “who is in which audience” stays in CDP; ingestion is a scheduled dump → S3.</li><li><strong>A Glue job</strong> (e.g. PySpark) runs when new data lands (triggered from S3 via a Lambda).It reads the CSV from the first S3 location, splits it into small, fixed-size chunks (e.g. 5,000 rows per chunk in your code).</li><li><strong>Chunking</strong> avoids having a few huge files and lets the next stage process in parallel, one chunk per message.</li><li>S3 Object Created on that bucket (or prefix) is sent to SQS (e.g. AudienceQueue) via S3 event notifications. Each new chunk file becomes one (or more) SQS messages describing “which S3 object to process.”</li><li><strong>SQS</strong> gives you reliable, async processing: if a processor fails, the message can be retried or go to a DLQ.</li><li>A Lambda is invoked by SQS for each message.</li><li>For each message it: Reads the chunk CSV from S3 (using bucket/key from the message). Writes these records in bulk to your audience store.</li></ul><h4>Newsletter Creation &amp; Scheduling Flow</h4><ul><li><strong>React App </strong>(admin UI) — Editors create and edit newsletters (templates, content, folders), manage users, and choose “schedule” for a newsletter. All of this goes through the React admin app (Material-UI, React Email Editor, etc.)</li><li>Newsletter CRUD Lambda — The React app talks to a Newsletter Management Lambda for create/read/update/delete of newsletters. It writes metadata to DynamoDB (e.g. newslettersTable) and HTML/content to S3 (e.g. newsletter archive bucket).</li><li>User CRUD Lambda — User and permission management (e.g. who can create/schedule newsletters) is handled by a User Management Lambda, which also uses DynamoDB (and, where relevant, your DB+ES layer) for persistence.</li><li>Data layer (DB + ES) — Newsletter metadata and user data live in DynamoDB; large or searchable content can also involve S3 and Elasticsearch. Audience/segment data used at send time comes from Elasticsearch (fed by the audience ingestion pipeline).</li><li>Schedule Newsletter Lambda — When someone clicks “schedule” in the React app, the request hits a Schedule Newsletter Lambda. That Lambda stores the schedule (e.g. in DynamoDB/state) and creates or triggers an EventBridge rule (e.g. cron) so the send runs at the right time.</li><li>Step Functions (orchestration) — The state machine runs the send flow: it invokes sendAudienceOnQueueLambda (which gets audience from ES and pushes batches to SQS), then readQueueAndSendNewsletterLambda (which gets newsletter content from DB/S3 and sends via SES).</li><li>Retrieval and delivery — Within Step Functions, newsletter content is loaded from S3/DynamoDB, recipients from Elasticsearch (and/or DB). Emails are sent through AWS SES; tracking events (opens, clicks, bounces) go to Firehose/S3 and into analytics.</li></ul><h4>Event Ingestion Flow</h4><ul><li>Event source (SES) — Email events (sends, deliveries, opens, clicks, bounces, complaints) are emitted by Amazon SES.</li><li>SES is configured with an event destination that forwards these events into the pipeline.</li><li>Streaming ingestion (Kinesis Data Firehose) — SES publishes events to Kinesis Data Firehose. Firehose buffers and batches the stream and provides at-least-once delivery into durable storage without you managing stream consumers.</li></ul><figure><img alt="Source: AWS Docs." src="https://cdn-images-1.medium.com/max/629/0*gk0CL44i6NOjSps6.png" /><figcaption>Source: AWS Docs</figcaption></figure><ul><li>Landing in S3 — Firehose delivers the batched events to an S3 bucket (e.g. the newsletter tracking events bucket).</li><li>Events are routed from S3 to SQS. That gives decoupled processing: each new object (or batch) becomes a message so a Lambda can process asynchronously with retries and backpressure.</li><li>Event processing (Lambda) — An AWS Lambda (e.g. processNewsletterTrackingEventsLambda) is invoked per S3 object (or per SQS message if used). It reads the file, parses SES JSON (e.g. by eventType: Delivery, Open, Click, Bounce, Complaint), maps them to your analytics schema, and forwards them to the analytics platform. For hard bounces it can also send unsubscribe/suppression events.</li><li>Analytics destination — The Lambda sends the processed events to your analytics system. There you get engagement metrics (opens, clicks), deliverability (bounces, complaints), and can build segments and reports on email performance.</li></ul><h3>Defining infrastructure using AWS CDK</h3><p>The AWS Cloud Development Kit (AWS CDK) is an open-source software development framework for defining cloud infrastructure in code and provisioning it through AWS CloudFormation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/0*aWpo7FydZecoaLAJ.png" /><figcaption>Source: AWS Docs</figcaption></figure><p>Benefits of CDK are -</p><ul><li>Develop and manage your infrastructure as code (IaC)</li><li>With the AWS CDK, you can use any of the following programming languages to define your cloud infrastructure: TypeScript, JavaScript, Python, Java, C#/.Net, and Go.</li><li>AWS CDK integrates with AWS CloudFormation to deploy and provision your infrastructure on AWS.</li><li>Develop faster by using and sharing reusable components called constructs. Use low-level constructs to define individual AWS CloudFormation resources and their properties.</li><li>Single stack, reusable constructs — One stack composes DynamoDB, S3, SQS, Lambdas, Step Functions, EventBridge, Firehose, SES, API Gateway, CloudFront; each piece lives in a construct so the stack stays readable and reusable.</li><li>Deploy and diff — cdk deploy and cdk diff; rollback = revert + redeploy; environments are reproducible from code.</li><li>Why it matters for this project — With many Lambdas, queues, Firehose, Glue, Step Functions, and SES, CDK is the single source of truth and makes dev/preprod repeatable.</li><li>Example -</li></ul><pre>import * as cdk from &#39;aws-cdk-lib&#39;;<br>import { Stack, StackProps, Duration } from &#39;aws-cdk-lib&#39;;<br>import { Construct } from &#39;constructs&#39;;<br><br>import * as dynamodb from &#39;aws-cdk-lib/aws-dynamodb&#39;;<br>import * as s3 from &#39;aws-cdk-lib/aws-s3&#39;;<br>import * as sqs from &#39;aws-cdk-lib/aws-sqs&#39;;<br>import * as lambda from &#39;aws-cdk-lib/aws-lambda&#39;;<br>import * as apigw from &#39;aws-cdk-lib/aws-apigateway&#39;;<br>import * as stepfunctions from &#39;aws-cdk-lib/aws-stepfunctions&#39;;<br>import * as tasks from &#39;aws-cdk-lib/aws-stepfunctions-tasks&#39;;<br>import * as events from &#39;aws-cdk-lib/aws-events&#39;;<br>import * as targets from &#39;aws-cdk-lib/aws-events-targets&#39;;<br>import * as firehose from &#39;aws-cdk-lib/aws-kinesisfirehose&#39;;<br>import * as iam from &#39;aws-cdk-lib/aws-iam&#39;;<br>import * as cloudfront from &#39;aws-cdk-lib/aws-cloudfront&#39;;<br>import * as origins from &#39;aws-cdk-lib/aws-cloudfront-origins&#39;;<br>import * as ses from &#39;aws-cdk-lib/aws-ses&#39;;<br><br>export class NewsletterPlatformStack extends Stack {<br>  constructor(scope: Construct, id: string, props?: StackProps) {<br>    super(scope, id, props);<br><br>    /* ======================<br>       DATA LAYER<br>    ====================== */<br><br>    const newslettersTable = new dynamodb.Table(this, &#39;NewslettersTable&#39;, {<br>      partitionKey: { name: &#39;newsletterId&#39;, type: dynamodb.AttributeType.STRING },<br>      billingMode: dynamodb.BillingMode.PAY_PER_REQUEST,<br>    });<br><br>    const contentBucket = new s3.Bucket(this, &#39;NewsletterContentBucket&#39;, {<br>      versioned: true,<br>      encryption: s3.BucketEncryption.S3_MANAGED,<br>    });<br><br>    /* ======================<br>       QUEUE<br>    ====================== */<br><br>    const audienceQueue = new sqs.Queue(this, &#39;AudienceQueue&#39;, {<br>      visibilityTimeout: Duration.minutes(5),<br>    });<br><br>    /* ======================<br>       LAMBDAS<br>    ====================== */<br><br>    const newsletterCrudLambda = new lambda.Function(this, &#39;NewsletterCrudLambda&#39;, {<br>      runtime: lambda.Runtime.NODEJS_18_X,<br>      handler: &#39;index.handler&#39;,<br>      code: lambda.Code.fromInline(&#39;exports.handler = async () =&gt; {};&#39;),<br>      environment: {<br>        TABLE_NAME: newslettersTable.tableName,<br>        BUCKET_NAME: contentBucket.bucketName,<br>      },<br>    });<br><br>    newslettersTable.grantReadWriteData(newsletterCrudLambda);<br>    contentBucket.grantReadWrite(newsletterCrudLambda);<br><br>    const sendAudienceLambda = new lambda.Function(this, &#39;SendAudienceLambda&#39;, {<br>      runtime: lambda.Runtime.NODEJS_18_X,<br>      handler: &#39;index.handler&#39;,<br>      code: lambda.Code.fromInline(&#39;exports.handler = async () =&gt; {};&#39;),<br>      environment: {<br>        QUEUE_URL: audienceQueue.queueUrl,<br>      },<br>    });<br><br>    audienceQueue.grantSendMessages(sendAudienceLambda);<br><br>    const sendEmailLambda = new lambda.Function(this, &#39;SendEmailLambda&#39;, {<br>      runtime: lambda.Runtime.NODEJS_18_X,<br>      handler: &#39;index.handler&#39;,<br>      code: lambda.Code.fromInline(&#39;exports.handler = async () =&gt; {};&#39;),<br>      environment: {<br>        BUCKET_NAME: contentBucket.bucketName,<br>      },<br>    });<br><br>    contentBucket.grantRead(sendEmailLambda);<br>    audienceQueue.grantConsumeMessages(sendEmailLambda);<br><br>    /* ======================<br>       STEP FUNCTIONS<br>    ====================== */<br><br>    const enqueueAudience = new tasks.LambdaInvoke(this, &#39;EnqueueAudience&#39;, {<br>      lambdaFunction: sendAudienceLambda,<br>    });<br><br>    const sendEmails = new tasks.LambdaInvoke(this, &#39;SendEmails&#39;, {<br>      lambdaFunction: sendEmailLambda,<br>    });<br><br>    const stateMachine = new stepfunctions.StateMachine(this, &#39;NewsletterStateMachine&#39;, {<br>      definition: enqueueAudience.next(sendEmails),<br>      timeout: Duration.minutes(30),<br>    });<br><br>    /* ======================<br>       EVENTBRIDGE (SCHEDULING)<br>    ====================== */<br><br>    const scheduleRule = new events.Rule(this, &#39;NewsletterScheduleRule&#39;, {<br>      schedule: events.Schedule.rate(Duration.hours(1)),<br>    });<br><br>    scheduleRule.addTarget(new targets.SfnStateMachine(stateMachine));<br><br>    /* ======================<br>       API GATEWAY<br>    ====================== */<br><br>    const api = new apigw.RestApi(this, &#39;NewsletterApi&#39;);<br><br>    const newsletters = api.root.addResource(&#39;newsletters&#39;);<br>    newsletters.addMethod(&#39;POST&#39;, new apigw.LambdaIntegration(newsletterCrudLambda));<br>    newsletters.addMethod(&#39;GET&#39;, new apigw.LambdaIntegration(newsletterCrudLambda));<br><br>    /* ======================<br>       SES (EMAIL)<br>    ====================== */<br><br>    const sesIdentity = new ses.EmailIdentity(this, &#39;SesIdentity&#39;, {<br>      identity: ses.Identity.domain(&#39;example.com&#39;),<br>    });<br><br>    /* ======================<br>       FIREHOSE (EVENT INGESTION)<br>    ====================== */<br><br>    const firehoseRole = new iam.Role(this, &#39;FirehoseRole&#39;, {<br>      assumedBy: new iam.ServicePrincipal(&#39;firehose.amazonaws.com&#39;),<br>    });<br><br>    contentBucket.grantWrite(firehoseRole);<br><br>    new firehose.CfnDeliveryStream(this, &#39;SesEventsFirehose&#39;, {<br>      deliveryStreamType: &#39;DirectPut&#39;,<br>      s3DestinationConfiguration: {<br>        bucketArn: contentBucket.bucketArn,<br>        roleArn: firehoseRole.roleArn,<br>      },<br>    });<br><br>    /* ======================<br>       CLOUDFRONT (ADMIN UI)<br>    ====================== */<br><br>    const adminUiBucket = new s3.Bucket(this, &#39;AdminUiBucket&#39;, {<br>      websiteIndexDocument: &#39;index.html&#39;,<br>      publicReadAccess: false,<br>    });<br><br>    const distribution = new cloudfront.Distribution(this, &#39;AdminUiDistribution&#39;, {<br>      defaultBehavior: {<br>        origin: new origins.S3Origin(adminUiBucket),<br>      },<br>    });<br><br>    /* ======================<br>       OUTPUTS<br>    ====================== */<br><br>    new cdk.CfnOutput(this, &#39;ApiUrl&#39;, { value: api.url });<br>    new cdk.CfnOutput(this, &#39;CloudFrontUrl&#39;, {<br>      value: `https://${distribution.domainName}`,<br>    });<br>  }<br>}</pre><p>CDK gives you full control over AWS resources, policies, permissions without touching the AWS console. Exciting.. right?</p><p>Lets now talk about the <strong>Amazon Simple Email Service (AWS SES).</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/0*dju-pgUIKS8GIr_Z.png" /><figcaption>Source: AWS Docs</figcaption></figure><p>It is a scalable, cost-effective, and reliable cloud email service provided by <strong>Amazon Web Services</strong>. It is designed to help businesses send <strong>transactional emails, marketing emails, and bulk newsletters</strong> while maintaining high deliverability and compliance.</p><h4>High Deliverability</h4><ul><li>Built-in reputation management and feedback loops</li><li>Integration with ISPs to reduce spam filtering</li><li>Supports <strong>DKIM, SPF, and DMARC</strong> for domain authentication</li></ul><h4>Managed vs Dedicated IPs</h4><ul><li><strong>Managed IPs</strong>: AWS handles IP reputation automatically (ideal for startups and new platforms)</li><li><strong>Dedicated IPs</strong>: Full control over sending reputation for high-volume senders</li><li><strong>IP Warm-up</strong> required when sending bulk emails for the first time</li></ul><p>We used Managed IPs as it was hassle free</p><h4>Scalability</h4><ul><li>Can handle <strong>millions of emails per day</strong></li><li>Automatic scaling without manual infrastructure planning</li><li>Works seamlessly with event-driven AWS services</li></ul><h4>Event Tracking &amp; Analytics</h4><p>SES can publish events such as:</p><ul><li>Delivered</li><li>Opened</li><li>Bounced</li><li>Complaints</li><li>Rejected</li></ul><p>These events integrate cleanly with:</p><ul><li><strong>Amazon Kinesis Firehose</strong></li><li><strong>Amazon S3</strong></li><li><strong>Amazon SNS / SQS</strong></li><li><strong>AWS Lambda</strong></li></ul><p>This makes SES ideal for <strong>newsletter analytics and engagement tracking</strong>.</p><h3>Learnings</h3><ul><li><strong>CDK-based deployments integrated with GitHub Actions</strong> significantly reduced deployment time and improved release consistency.</li><li><strong>Amazon Kinesis Firehose</strong> proved effective for ingesting high-volume event data, while the <strong>S3 + SQS + Lambda</strong> pipeline handled downstream processing reliably and at scale.</li><li><strong>AWS infrastructure can be fully managed as code</strong> using CDK, enabling repeatable, version-controlled, and maintainable cloud environments.</li><li><strong>AWS SES managed IPs</strong> simplified email deliverability by offloading IP reputation and management for the newsletter domain.</li><li><strong>Initial IP warm-up is mandatory</strong> when sending bulk newsletters for the first time to establish sender reputation and ensure high inbox placement.</li></ul><h3>Final Thoughts</h3><p>We didn’t out-engineer a marketing platform — we <strong>re-scoped the problem</strong>.</p><p>By combining:</p><ul><li>A cloud email service AWS SES</li><li>An existing analytics/CDP platform</li><li>Event-driven, serverless infrastructure</li><li>A small React admin app</li></ul><p>We replaced a large portion of a third-party newsletter platform with something cheaper, simpler, and better aligned with how our teams work.</p><p>If you’re spending heavily on email tooling and already have strong analytics and engineering foundations, a focused in-house newsletter system may be far more achievable — and cost-effective — than it first appears.</p><p><strong>I tried to capture the high level details in this article. Let me know if you are interested in more details.</strong></p><h3>References</h3><ul><li><a href="https://docs.aws.amazon.com/cdk/v2/guide/home.html">What is the AWS CDK?</a></li><li><a href="https://aws.amazon.com/ses/">Cloud Email Sending Service - Amazon Simple Email Service - AWS</a></li><li><a href="https://aws.amazon.com/firehose/">Firehose</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a89caab8383f" width="1" height="1" alt=""><hr><p><a href="https://aws.plainenglish.io/how-we-replaced-a-leading-newsletter-platform-with-an-in-house-system-and-saved-150k-a-year-a89caab8383f">How We Replaced a Leading Newsletter Platform with an In-House System and Saved ~$150K a Year</a> was originally published in <a href="https://aws.plainenglish.io/">AWS in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Adobe AEM integration with Magento on Mac (without MAMP) Part-4]]></title>
            <link>https://medium.com/@sujeetsharma1980/adobe-aem-integration-with-magento-on-mac-without-mamp-part-4-d54013eceaba?source=rss-c79c3bceb5d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/d54013eceaba</guid>
            <dc:creator><![CDATA[Sujeet Sharma]]></dc:creator>
            <pubDate>Wed, 01 Jul 2020 02:03:30 GMT</pubDate>
            <atom:updated>2020-07-01T02:05:29.831Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_B1YUFl77pe5AnNOjMfhig.png" /></figure><p><em>We have covered first 7 steps in previous parts. In this part we will cover step#8&amp;9 -</em></p><ol><li>Setup Apache webserver.</li><li>Setup php.</li><li>Run apache server on https.</li><li>Setup Mysql server.</li><li>Setup Magento on Apache.</li><li>Install sample data on Magento</li><li>Graphql client setup to test the response from Magento.</li><li><strong>Install sample ecommerce application provided by Adobe on your local AEM instance.</strong></li><li><strong>AEM Configuration to connect with Magento.</strong></li></ol><p><a href="https://medium.com/@sujeetsharma1980/adobe-aem-integration-with-magento-on-mac-without-mamp-part-1-3ee06f5c6a18">Part-1</a>, <a href="https://medium.com/@sujeetsharma1980/adobe-aem-integration-with-magento-on-mac-without-mamp-part-2-3dd446d0215a">Part-2</a>, <a href="https://medium.com/@sujeetsharma1980/adobe-aem-integration-with-magento-on-mac-without-mamp-part-3-b8885c26e4bf">Part-3</a></p><p><strong>STEP #8</strong> -<em>Install sample eCommerce application in AEM</em></p><p>Download sample application package “<strong>demo-store-all-0.11.0.zip”</strong> from -</p><pre><a href="https://github.com/adobe/aem-cif-project-archetype/releases">https://github.com/adobe/aem-cif-project-archetype/releases</a></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T2GOdkB0wnt09_4jQyPhxg.png" /></figure><p>This package has everything needed — cif connector, commerce components &amp; sample application included in it.</p><p>Once Package is install in AEM, you will be able to see Venia site available in AEM -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XNEfabPuZM5TUvRAVhxO3A.png" /></figure><p><strong>STEP #9</strong> -<em>AEM Configuration to connect with Magento</em></p><p>Here, we are trying to run this application from author instance but you can set up publisher &amp; dispatcher too. You need to go through adobe’s documentation for that.</p><p>Goto Felix console — <a href="http://localhost:4502/system/console/configMgr">http://localhost:4502/system/console</a> and set the following configurations -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uSYWduviSjMLIaLax8sf3w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lfsH9d2hzi37BUIa4NFplg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R2lP4_mNQC-dTeO3-9Tb6w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oz3VYPletVaDhW94u45pLg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t1OwGz7GvAO1tPy4Z-SPhw.png" /></figure><p>Now, Goto cloud services &gt; cif connector</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XDlIDmjrnYiI67aKPEoZJg.png" /></figure><p>Goto Venia Demo store configuration&gt; commerce</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C738jqKp7s_9swJXW5UO5g.png" /></figure><p>Open properties and set following values -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BZzR-KTjWjTvPnQolmaJlw.png" /></figure><p>Now, goto navigation</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UbACTR6IXmRd645p84XBmQ.png" /></figure><p>click on Commerce</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SHzgptUPCFBzTYcRg2tGsQ.png" /></figure><p>Click on Products</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oqvm9lCaTpEM0NUzCVlSaw.png" /></figure><p>Click on sample app — Venia. You should be able to see the products in AEM loaded from Magento. Now everything is done.</p><p>Go to site and search for product..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z8gQsJtmzlzyOKjt5_v2Yw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1-5XY9jnvKWVPRgk_3ST6g.png" /></figure><p>Done. You are all set.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d54013eceaba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Adobe AEM integration with Magento on Mac (without MAMP) Part-3]]></title>
            <link>https://medium.com/@sujeetsharma1980/adobe-aem-integration-with-magento-on-mac-without-mamp-part-3-b8885c26e4bf?source=rss-c79c3bceb5d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8885c26e4bf</guid>
            <dc:creator><![CDATA[Sujeet Sharma]]></dc:creator>
            <pubDate>Mon, 29 Jun 2020 06:50:12 GMT</pubDate>
            <atom:updated>2020-07-01T02:07:59.229Z</atom:updated>
            <content:encoded><![CDATA[<h3>Adobe AEM integration with Magento (without MAMP) Part-3</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_B1YUFl77pe5AnNOjMfhig.png" /></figure><p><em>In part-1&amp;2, we covered first 4 steps, in this part we will cover step#5, 6 &amp; 7-</em></p><ol><li>Setup Apache webserver.</li><li>Setup php.</li><li>Run apache server on https.</li><li>Setup Mysql server.</li><li><strong>Setup Magento on Apache.</strong></li><li><strong>Install sample data on Magento</strong></li><li><strong>Graphql client setup to test the response from Magento.</strong></li><li>Install sample ecommerce application provided by Adobe on your local AEM instance.</li><li>AEM Configuration to connect with Magento.</li></ol><p><a href="https://medium.com/@sujeetsharma1980/adobe-aem-integration-with-magento-on-mac-without-mamp-part-1-3ee06f5c6a18">Part-1</a>, <a href="https://medium.com/@sujeetsharma1980/adobe-aem-integration-with-magento-on-mac-without-mamp-part-2-3dd446d0215a">Part-2</a>, <a href="https://medium.com/@sujeetsharma1980/adobe-aem-integration-with-magento-on-mac-without-mamp-part-4-d54013eceaba">Part-4</a></p><p><strong>STEP#5 </strong>— <em>Setup Magento on Apache.</em></p><ul><li>Go to Magento’s site and download version 2.3.4. You will have to Signup to download Magento.</li><li>After download, extract the zip file and rename the folder to magento.</li><li>Copy the magento folder to /usr/local/var/www</li><li>Restart Apache using -</li></ul><pre>$sudo apachectl restart</pre><p>Now, its time to setup Magento. Access magento using -</p><pre>http://localhost:8080/magento</pre><p>It will present a Magento setup screen, follow the steps -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*o882-i_wkKybwqfy.JPG" /><figcaption>Start setup by clicking on Agree and Setup Magento</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*ArUAGu1-jab6u3Dx.JPG" /><figcaption>Setup will perform readiness check</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*5ZBBm-Ma4xHEreqB.JPG" /><figcaption>Data base setup, leave the password blank</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*BzcnM0NOeqLjtxhn.JPG" /><figcaption>Setup your store address as http:localhost:8080/magento. go in advance options, setup https address store address as https://localhost/magneto</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*ZJJ2oMWgJY5RadLV.JPG" /><figcaption>Set timezone and currency.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*1yLgt6uKavj418ye.JPG" /><figcaption>Set admin username and password of your choice.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*EBVaoBHj5_w4IdFe.JPG" /><figcaption>Install it</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2QUinXQEQFeaRZ3eoULcUA.png" /><figcaption>Setup is complete</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l3x9z-b0x6tfv8nnuUh39g.png" /><figcaption>If everything is setup correctly, <a href="https://localhost/magento">https://localhost/magento</a> will present you sample Magento site</figcaption></figure><p><strong>STEP#6 </strong>— <em>Install sample data on Magento</em></p><p>Goto Magento folder</p><pre>$cd /usr/local/var/www/magento</pre><p>Run following command, it will install the sample data</p><pre>$php -dmemory_limit=-1 bin/magento sampledata:deploy<br>$php -dmemory_limit=-1 bin/magento setup:upgrade</pre><p>Restart Apache</p><pre>$sudo apachectl -k restart</pre><p>Login in Magento and goto catalog&gt;products, you will be able to see products loaded in Magento</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-znH9esLnBg6VdrHrSbU8g.png" /></figure><p><strong>STEP #7</strong> — <em>Graphql client setup to test the response from Magento.</em></p><p>Install Graphql Playground/any other graphql client of your choice.</p><p>Hit the following query to check if evrything is working fine from Magento perspective -</p><pre>{<br>  products(search: &quot;Yoga pants&quot;, pageSize: 2) {<br>    total_count<br>    items {<br>      name<br>      sku<br>      price_range {<br>        minimum_price {<br>          regular_price {<br>            value<br>            currency<br>          }<br>        }<br>      }<br>    }<br>    page_info {<br>      page_size<br>      current_page<br>    }<br>  }<br>}</pre><p>You should be able to get the response -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GLTTov-bp1TymgIhnCAwGA.png" /></figure><p>You are all set with Magento. In next post, we will integrate Magento with AEM.</p><p>Done.</p><p>In <a href="https://medium.com/@sujeetsharma1980/adobe-aem-integration-with-magento-on-mac-without-mamp-part-4-d54013eceaba">Part-4</a>, we will cover step #7&amp;8 ie setup &amp; configure AEM commerce app.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8885c26e4bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Adobe AEM integration with Magento on Mac (without MAMP) Part-2]]></title>
            <link>https://medium.com/@sujeetsharma1980/adobe-aem-integration-with-magento-on-mac-without-mamp-part-2-3dd446d0215a?source=rss-c79c3bceb5d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/3dd446d0215a</guid>
            <dc:creator><![CDATA[Sujeet Sharma]]></dc:creator>
            <pubDate>Mon, 29 Jun 2020 06:47:43 GMT</pubDate>
            <atom:updated>2020-07-01T02:09:00.298Z</atom:updated>
            <content:encoded><![CDATA[<h3>Adobe AEM integration with Magento (without MAMP) Part-2</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_B1YUFl77pe5AnNOjMfhig.png" /></figure><p><em>In part-1, we covered first 2 steps, in this part we will cover steps#3 &amp;4 -</em></p><ol><li>Setup Apache webserver.</li><li>Setup php.</li><li><strong>Run apache server on https.</strong></li><li><strong>Setup Mysql server.</strong></li><li>Setup Magento on Apache.</li><li>Install sample data on Magento</li><li>Install sample ecommerce application provided by Adobe on your local AEM instance.</li><li>AEM Configuration to connect with Magento.</li><li>Graphql client setup to test the response from Magento.</li></ol><p><a href="https://medium.com/@sujeetsharma1980/adobe-aem-integration-with-magento-on-mac-without-mamp-part-1-3ee06f5c6a18">Part-1</a>, <a href="https://medium.com/@sujeetsharma1980/adobe-aem-integration-with-magento-on-mac-without-mamp-part-3-b8885c26e4bf">Part-3</a>, <a href="https://medium.com/@sujeetsharma1980/adobe-aem-integration-with-magento-on-mac-without-mamp-part-4-d54013eceaba">Part-4</a></p><p><strong>STEP#3 </strong>— <em>Run apache server on https.</em></p><p>Edit your httpd.conf:</p><pre>$ vi /usr/local/etc/httpd/httpd.conf</pre><p>Uncomment socache_shmcb_module, ssl_module, and also the include for the httpd-ssl.conf by removing the leading # symbol :</p><pre>LoadModule socache_shmcb_module lib/httpd/modules/mod_socache_shmcb.so<br>...<br>LoadModule ssl_module lib/httpd/modules/mod_ssl.so<br>...<br>Include /usr/local/etc/httpd/extra/httpd-ssl.conf</pre><p>Next open the SSL config file:</p><pre>$ code /usr/local/etc/httpd/extra/httpd-ssl.conf</pre><p>Find listen and set port as 443:</p><pre>Listen 443</pre><p>then find virtual host and replace the 8443 references with 443 and note the commenting:</p><pre>&lt;VirtualHost _default_:443&gt;</pre><pre>#   General setup for the virtual host<br>#DocumentRoot &quot;/usr/local/var/www&quot;<br>#ServerName <a href="http://www.example.com:443/">www.example.com:443</a></pre><p>Next set appropriate SSL based virtual hosts.</p><pre>$ vi /usr/local/etc/httpd/extra/httpd-vhosts.conf</pre><p>Add a VirtualHost entry for localhost to provide SSL support.</p><pre>&lt;VirtualHost *:443&gt;<br>    DocumentRoot &quot;/Users/your_user/Sites&quot;<br>    ServerName localhost<br>    SSLEngine on<br>    SSLCertificateFile &quot;/usr/local/etc/httpd/server.crt&quot;<br>    SSLCertificateKeyFile &quot;/usr/local/etc/httpd/server.key&quot;<br>&lt;/VirtualHost&gt;</pre><p>Generate a key and certificate:</p><pre>$ cd /usr/local/etc/httpd<br>$ openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout server.key -out server.crt</pre><p>Restart Apache:</p><pre>$ sudo apachectl -k restart</pre><p><strong>STEP#4 </strong>— <em>Setup MySql server</em></p><pre>$ brew install mysql@5.7<br>$brew services stop mysql@5.7<br>$brew services start mysql@5.7</pre><pre>#login to Mysql server<br>$mysql -u root</pre><p>After login into Magento server, run following commands</p><pre>mysql&gt;create database magento2</pre><pre>mysql&gt;CREATE USER &#39;admin&#39;@&#39;localhost&#39; IDENTIFIED WITH mysql_native_password BY &#39;admin123&#39;;</pre><pre>mysql&gt;GRANT ALL PRIVILEGES ON *.* to &#39;admin&#39;@&#39;localhost&#39;;<br>flush privileges;</pre><pre>mysql&gt;exit;</pre><p>Done.</p><p>In <a href="https://medium.com/@sujeetsharma1980/adobe-aem-integration-with-magento-on-mac-without-mamp-part-3-b8885c26e4bf">Part-3</a>, we will cover step #5&amp;6 i.e setup Magento &amp; sample data</p><p>In Part-4, we will cover step #7&amp;8 ie setup &amp; configure AEM commerce app.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3dd446d0215a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Adobe AEM integration with Magento on Mac (without MAMP) Part-1]]></title>
            <link>https://medium.com/@sujeetsharma1980/adobe-aem-integration-with-magento-on-mac-without-mamp-part-1-3ee06f5c6a18?source=rss-c79c3bceb5d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ee06f5c6a18</guid>
            <dc:creator><![CDATA[Sujeet Sharma]]></dc:creator>
            <pubDate>Mon, 29 Jun 2020 06:44:12 GMT</pubDate>
            <atom:updated>2020-07-06T04:24:13.348Z</atom:updated>
            <cc:license>https://creativecommons.org/publicdomain/mark/1.0/</cc:license>
            <content:encoded><![CDATA[<h3>Adobe AEM integration with Magento (without MAMP)Part-1</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_B1YUFl77pe5AnNOjMfhig.png" /></figure><p>Customer Experience is at the core of AEM. The platform is built on the premise that content and commerce have to work together to uplift the overall customer experience. Magento is great but it has its limits as far as content and digital asset management is concerned. But when Magento and AEM meet, it’s like the best of both worlds (CMS and Commerce).</p><p><strong><em>AEM + Magento Benefits</em></strong></p><ul><li><em>Provides a rich store front experience with features like page builder and PWA studio</em></li><li>Components like Product Teaser/Product Carousel enable creation of experience pages</li><li>Single platform for both brand and commerce experience</li><li>Seamlessly infuses commerce capabilities and ability to market</li><li>Magento and AEM together has robust omnichannel capabilities</li></ul><blockquote>This article will guide you about setting up AEM integration with Magento on your Mac machine without using using MAMP server. MAMP Pro is a great tool, it setup the Magento quickly on you machine but it comes with limited days trial. Once the trial is over, it is extremely difficult to run the Magento instance back again. So I decided to setup Magento on local without using MAMP pro so that I dont run into post trial issues.</blockquote><p><em>Here are all the STEPS to make the whole integration work and test on local. </em>In this part (Part-1), We will cover first 2 steps.</p><ol><li><strong>Setup Apache webserver.</strong></li><li><strong>Setup php.</strong></li><li>Run apache server on https.</li><li>Setup Mysql server.</li><li>Setup Magento on Apache.</li><li>Install sample data on Magento</li><li>Install sample ecommerce application provided by Adobe on your local AEM instance.</li><li>AEM Configuration to connect with Magento.</li><li>Graphql client setup to test the response from Magento.</li></ol><p><strong>STEP#1 </strong>— <em>Setup Apache webserver.</em></p><p>Install homebrew (if you don’t have):</p><pre>$ /bin/bash -c “$(curl -fsSL <a href="https://raw.githubusercontent.com/Homebrew/install/master/install.sh">https://raw.githubusercontent.com/Homebrew/install/master/install.sh</a>)&quot;</pre><p>If you already have the built-in Apache running, it will need to be shutdown first.</p><pre>$ sudo apachectl stop<br>$ sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist 2&gt;/dev/null</pre><p>Now we need to install the new version provided by Brew:</p><pre>$ brew install httpd</pre><p>Once httpd is installed then following commands can be used to start/stop the server:</p><pre>$ sudo apachectl start<br>$ sudo apachectl stop<br>$ sudo apachectl -k restart</pre><p>If server is already running, you can try to reach your server in a browser by pointing it at <a href="http://localhost:8080/">http://localhost:8080</a>, you should see a simple header that says &quot;It works!&quot;.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WoTTBEb_qtTKyJVTeYtc5g.png" /></figure><p><strong>STEP#2 </strong>— <em>Setup php</em></p><p>As Magento is a php based ecommerce product, it is important to ensure that php is installed and working.</p><pre>$ brew install php@7.3</pre><p>You have successfully installed your PHP versions, but we need to tell Apache to use them. You will again need to edit the /usr/local/etc/httpd/httpd.conf file. Remove # from the front of mod_rewrite module.</p><pre>LoadModule rewrite_module lib/httpd/modules/mod_rewrite.so</pre><p>And add the following libphp modules:</p><pre>LoadModule php7_module /usr/local/opt/php@7.3/lib/httpd/modules/libphp7.so</pre><p>Also you must set the Directory Indexes for PHP explicitly, so search for this block:</p><pre>&lt;IfModule dir_module&gt;<br>    DirectoryIndex index.html<br>&lt;/IfModule&gt;</pre><p>and replace it with this:</p><pre>&lt;IfModule dir_module&gt;<br>    DirectoryIndex index.php index.html<br>&lt;/IfModule&gt;</pre><pre>&lt;FilesMatch \.php$&gt;<br>    SetHandler application/x-httpd-php<br>&lt;/FilesMatch&gt;</pre><p>In the end of httpd.conf file, add -</p><pre>AddType application/x-httpd-php .php<br>AddType application/x-httpd-phps .phps<br>AddType application/x-httpd-php3 .php3 .phtml<br>AddType application/x-httpd-php .html</pre><p>Create index.html put some dummy content in it like: &lt;h1&gt;My User Web Root&lt;/h1&gt;.</p><pre>$ cd /usr/local/var/www<br>$ echo &quot;&lt;h1&gt;My User Web Root&lt;/h1&gt;&quot; &gt; index.html</pre><p>The best way to test if PHP is installed and running as expected is to make use of <a href="http://php.net/manual/en/function.phpinfo.php">phpinfo()</a>. This is not something you want to leave on a production machine, but it’s invaluable in a development environment.</p><p>In that same &lt;Directory&gt; block you will find an AllowOverride setting, this should be changed as follows:</p><pre># AllowOverride controls what directives may be placed in .htaccess files.<br># It can be &quot;All&quot;, &quot;None&quot;, or any combination of the keywords:<br>#   AllowOverride FileInfo AuthConfig Limit<br>#<br>AllowOverride All</pre><p>Simply create a file called info.php in your /usr/local/var/www folder you created earlier with this one-liner.</p><pre>echo &quot;&lt;?php phpinfo();&quot; &gt; /usr/local/var/www/info.php</pre><h3>User &amp; Group</h3><p>Change these to match your user account (replace your_user with your real username), with a group of staff:</p><pre>User your_user<br>Group staff</pre><h3>Servername</h3><p>Set ServerName as:</p><pre>ServerName localhost:8080</pre><p>Save the file and stop Apache then start again, now that we have installed PHP:</p><pre>$ sudo apachectl -k stop<br>$ sudo apachectl start</pre><p>Point your browser to <a href="http://localhost/info.php">http://localhost:8080/info.php</a> and you should see a shiny PHP information page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O_nYghGiwl1H0QdGlOw2mg.png" /></figure><p>If you see a similar phpinfo result, congratulations!</p><p>In <a href="https://medium.com/@sujeetsharma1980/adobe-aem-integration-with-magento-on-mac-without-mamp-part-2-3dd446d0215a">Part-2</a>, we will cover step #3 &amp; 4 i.e setup apache on https, mysql server.</p><p>In <a href="https://medium.com/@sujeetsharma1980/adobe-aem-integration-with-magento-on-mac-without-mamp-part-3-b8885c26e4bf">Part-3</a>, we will cover step #5&amp;6 i.e setup Magento &amp; sample data</p><p>In <a href="https://medium.com/@sujeetsharma1980/adobe-aem-integration-with-magento-on-mac-without-mamp-part-4-d54013eceaba">Part-4</a>, we will cover step #7&amp;8 ie setup &amp; configure AEM commerce app.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ee06f5c6a18" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>