Slow down. You must not have noticed that the free tier only provides one request per 24 hours. That's fine for most use cases, but my app is adding numbers two, maybe three times per hour, so I hacked together my own implementation and it's meeting my needs just fine.
You’re using IP address to limit incoming queries? Anyone with a proxy would be able to send multiple requests per day. A true professional would onboard each new client individually, and provide them with unique GUIDs and credentials to use your service securely.
31
u/avinassh Dec 20 '20
hey there! this is an interesting problem to solve and I wanted to chime in cos I also have a similar startup called gg-flip
standalone libray: https://github.com/avinassh/gg-flip
cloud version: https://avi.im/gg-flip/
launch post: https://www.reddit.com/r/shittyprogramming/comments/7roz5k/introducing_gg_flip_a_highly_performant/
some lessons I learnt:
20
u/dersand Dec 20 '20
1 request per day huh? Can my API guy talk to your API guy and we can chat about this?
9
u/lawonga Dec 20 '20
NO TESTS!????!!!!!!!!!
7
u/polyworfism Dec 20 '20
1 request per day for everyone, right?
44
u/editor_of_the_beast Dec 20 '20
Bookmarking this. This would have saved me 3 weeks on my last project.
4
u/jeff303 Dec 21 '20
My three year old daughter can provide this service with a better SLA.
27
u/PhillipNe Dec 20 '20
A quick tip for Python programmers:
If you overwrite the built-in __add__ with a call to the AaaS API, you can simply add two numbers by
22
u/[deleted] Dec 20 '20
I dont have a PhD in mathematics. Can somebody explain what this does without all the technical jargon?
12
u/PityUpvote Dec 20 '20
FINALLY
9
u/lastunusedusername2 Dec 20 '20
The
sleepin the example is my favorite part4
u/darioxlz Dec 20 '20
This is the best repo in 2020
4
u/leaningtoweravenger Dec 20 '20
I prefer ASS: Addition Server Side
3
u/SnareHanger Dec 21 '20
Will there be an enterprise license for this? I can foresee needing maybe four or five adds a day.
1
u/ekolis Dec 20 '20
But what if you want to subtract? It only works with positive numbers, so you can't even hack it together by adding a negative number to something...
1
u/dof42 Dec 21 '20
You’re using IP address to limit incoming queries? Anyone with a proxy would be able to send multiple requests per day. A true professional would onboard each new client individually, and provide them with unique GUIDs and credentials to use your service securely.
1
u/Monkey_Adventures Dec 21 '20
guys i found a way to scam this guy. If we do multiple additions, we can replicate multiplication.
1
u/green_meklar Dec 21 '20
wow
much scalable
such enterprise
amaze
0
u/[deleted] Dec 20 '20
[deleted] — view deleted comment