• Breaking News

    Thursday, May 9, 2019

    Lambda vs Docker? Ask Programming

    AskProgramming

    Lambda vs Docker? Ask Programming


    Lambda vs Docker?

    Posted: 09 May 2019 07:22 PM PDT

    Hello! A coworker and I were having a debate on whether we should deploy a new piece of functionality on AWS Lambda or on Docker containers. Let me give some context to address for our specific use case.

    I work for a large company. My team is utilizing an event-driven architecture to create an automated pipeline to solve a business problem. For some parts of the pipeline:

    • We are creating services that simply listen to events and pass those to other services.
    • We are creating services that retrieve files (and other information) from other services.
    • We are creating services that do the parsing and heavy computational work on those files.

    From an AWS Lambda perspective, my view was that we would be able to take advantage of the auto-scaling, cost saving, ease of security, and the speed to both write and maintain the lambda for developers. AWS Lambda would also only run the services as needed, when the pipeline is in use.

    From my coworkers perspective, they stated that the cost would be similar deploying out Docker containers with that of AWS Lambda, that it would maybe be a couple hundred dollars more a year to have Docker deployed out (The profits we would make would offset the cost). Docker Datacenter would do the auto scaling of the Docker containers for us. That it would be quicker for both developers to create an application using Docker and maintain that application, over AWS Lambda. That cold starts would only have more drawbacks than positives.

    • Should we be trying to implement these services with AWS Lambda or Docker? If it depends on the service implemented, what are your recommendations to decide on what to choose?
    • Is there any flaws in either my coworkers or my own arguments? It seemed like there were conflicts on whether Lambda or Docker would be easier to write and maintain for?
    • Are there any pros/cons that we neglected to mention?
    • Any stories that you have encountered when dealing with Lambda or Docker?

    Any feedback is appreciated, and happy to provide any more information, if useful! Thank you.

    submitted by /u/firecopy
    [link] [comments]

    Help with SQL baby announcement

    Posted: 09 May 2019 06:45 AM PDT

    Hi all, I'm hoping someone might be interested in helping me. My SO works regularly with SQL, and I'd like to tell him I'm pregnant using SQL code. I only have a vague understanding of any coding languages, though.

    Would it be possible to have something to make it obvious with sperm = SO's name + egg = me and the length of query = 40 weeks with baby as the final outcome? Yeah, no idea how to make that happen.

    submitted by /u/galonabuffalooo
    [link] [comments]

    how to play itunes music's from terminal or aiml pattern

    Posted: 09 May 2019 09:45 PM PDT

    An attempt to make a very simple, Personal Assistant . and my project is based on aiml and uses pyaiml for using the AIML interpreter in python. I want to give a command for my aiml pattern to open iTunes and automatically play a random song, is there to make it work ? Like for example iPhone's Siri , she starts playing music automatically after she receives a command "play a music", no need to press the play button

    I used this to launch iTunes

    open -a /Applications/iTunes.app/Contents/MacOS/itunes</system> ``` I tried this ```<system> open -a itunes 1.mp3</system>``` it automatically starts the music from my python folder not from the actual itunes library 
    submitted by /u/chinalivingpig220
    [link] [comments]

    [Python Graphics] Using turtle to create circles for a project, stuck on last part.

    Posted: 09 May 2019 09:43 PM PDT

    I cannot figure out how to get each circle to be the correct size, and my last circle is showing up too high.

    Here is my code:

    import math, turtle, time, random, os

    t = turtle.Turtle()

    turtle.hideturtle()

    radius = 1

    numC = input('Enter the number of circles to draw; ')

    numC = int(numC)

    while radius < 50 or radius > 200:

    radius = input('Enter the radius (>=50, <=200) of the largest square; ')

    radius = int(radius)

    if radius < 50 or radius > 200:

    print('The radius must be an integer between 50 and 200; try again.')

    u = radius

    if numC >= 0:

    for i in range(numC):

    u = int(u - radius/numC)

    turtle.color(random.random(), random.random(), random.random())

    turtle.goto(0, -u)

    turtle.down()

    turtle.begin_fill() #begins to fill the boxes with color

    turtle.circle(u)

    turtle.end_fill()

    No comments:

    Post a Comment