Will pay someone to help me turn my python script into a lambda function

Using tweepy for python? Have a spare raspberry pi 3b+? Cron job that on a rasbian os? Pipe output somewhere with your python skills.

Keep in mind of tweepy limitations when trying to scale

Good luck have fun

t3.nano is like $4 a month in us-east-1, what instance size are you using?

Why not just a cron job

Running on ec2? The lambda would probably be cheaper. And cloudwatch event triggers supports cron expressions.

While you are right they should do about 50 tests to get a good average

Cheaper to run, but what if you factor in engineering and support?

Ec2 is more expensive and you need to manage the instance yourself on top of that. You don’t need to manage anything wrt lambda and cloud watch.

The engineering part is straight forward. Probably about 10 lines in a serverless yaml file and an entry point lambda handler function to run the script’s logic.

Ec2 is more expensive

Than engineering time? Not by a long shot.

The engineering part is straight forward. Probably about 10 lines in a serverless yaml file and an entry point lambda handler function to run the script’s logic.

For the experienced, sure. What about for someone who is asking other people to write the lambda for him? Will he have to spend more time setting up lambda or ec2? How long will it take for the savings from lambda to exceed the costs of the extra engineering time?

Following tutorial in AWS lambda documentation will take what, 10 mins? Code adjustments, maybe hour for a rookie. It’s not wasted time if OP learns one of the cornerstones of AWS ecosystem in process. Don’t be contrarian for the sake of it.

Don’t be contrarian for the sake of it.

You’re the contrarian one. You don’t spend engineering time unless you save even more on operating expenses. There is a reason we throw hardware at slow code rather than rewriting it. Computing time is cheap, engineering time is expensive.

Maybe your time is worth less than you’d save switching to lambda, but that’s hardly universal.

I DM’ed you

Why not just go to the likes of upwork and hire somebody there? Will cost you like $30-50 and will take an hour or so.

Lightsail’s smallest box is $3.50/mo including bandwidth. Forget lambda, stick with what you know. Move the script out of ec2 on to lightsail and call it a day. If you’re asking for help this early on, managing the lambda and its output is not worth your effort.

If your main concern is price you need to realize that issues with lambda/networking/twitter/etc could cause your bill to spike very quickly and then suddenly you owe $10-$20-$150 for a month. Lightsail is set-and-forget and will always be $3.50 a month unless you go above the very generous bandwidth allocation. Spoiler: you won’t and if you did you definitely don’t want the associated lambda bill.

Good point. Did that really deserve -8 downvotes?

Wasn’t me. Not sure why Reddit does that sometimes. It was a legitimate question.

Thank you ya it does impact my self esteem as a growing professional and , the way tech degrades and put downs other people for not knowing what they think to be right is unique. I know that’s a generalization but I seem to see it a lot here.

I’m sorry you’re experiencing that. It’s frustrating that there’s this expectation that b everyone in a particular sub must be fully up to date and an expert on the topic at hand. I’m in AWS every working day and I’m sure I’m no expert - I have a lot of learning to do.

Try not to let it bother you. At least it’s useless internet points. (If you’re anything like me, that’s no consolation - but it’s something totry to keep in mind when it happens)