Software Alternatives & Reviews

Architect a easy way to jump into the serverless world

Twitter Ads Node.js Amazon SQS Amazon SES
  1. Twitter offers targeted ad placement on their ad platform.
    Let QRCode = require('qrcode') Let AWS = require('aws-sdk'); Exports.handler = async function queue(event) { try { console.info('incoming message to queue notification-handler', event) const AwsSes = new AWS.SES({ apiVersion: '2010-12-01' }) // handle incoming event, which could come in as a array await Promise.all(event.Records.map(async record => { //save a record for each one and publish new event const parsedBody = JSON.parse(record.body) const qrcodeString = `https://twitter.com/${parsedBody.twitter}` const base64qr = await new Promise((resolve, _reject) => { QRCode.toString(qrcodeString, { type: 'terminal' }, function (err, QRcode) { if (err) return console.error("error occurred") // Printing the generated code for your debugging purposes console.info(QRcode) }) QRCode.toDataURL(qrcodeString, function (err, code) { if (err) return console.error("error occurred") resolve(code) }) }) const sendPromise = await AwsSes.sendEmail({ Destination: { ToAddresses: [ parsedBody.email, ] }, Message: { Body: { Html: { Charset: "UTF-8", Data: `${base64qr}" alt=${parsedBody.twitter} />` }, Text: { Charset: "UTF-8", Data: qrcodeString } }, Subject: { Data: 'Architect QR Email Service ' + parsedBody.twitter } }, Source: parsedBody.email, }).promise(); console.info("Email Sent", sendPromise) })) } catch (error) { console.error('Failed to handle notification message', error) throw new Error('Failed to handle notification message') } }.

    #Marketing #Ad Networks #Marketing Platform 1 social mentions

  2. Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications
    In this article, I want to introduce Architect a serverless framework that might make you think again when looking at going serverless. Architect is opinionated serverless framework that focuses on reducing complexity of working with multiple aws cloud services. It prioritizes speed with fast local dev, smart configurable defaults and flexible infrastructure as code. When you see the config file you should be able to tell what is going on and what resources are available. Architect supports multiple runtimes, but for the sake of simplicity and because in Sibi we primarily use node.js.

    #Runtime #JavaScript Runtime #JavaScript 782 social mentions

  3. Amazon Simple Queue Service is a fully managed message queuing service.
    Pricing:
    • Open Source
    Now let’s do a bit more with this. We should take advantage of AWS lambda and utilize one of the best tools serverless echo system has to offer queues, which in the AWS world that resource is called Amazon Simple Queue Service (SQS) .

    #Data Integration #Stream Processing #Web Service Automation 64 social mentions

  4. Scale your business email & marketing messages with Amazon Simple Email Service (SES), a cost-effective and reliable cloud email service. Sign up today.
    Pricing:
    In this introduction to Architect, we will be building creating a REST endpoint that takes user data converts it into QR code and sends email out using SES with my url.

    #Email Delivery #Email Marketing #Transactional Email 65 social mentions

Discuss: Architect a easy way to jump into the serverless world

Log in or Post with