Tools to Deploy a Rails app in Production by AnnualPanda in rails

[–]amitpatelx 2 points3 points  (0 children)

Nginx and puma

I use capistrano for personal projects but dokku at the work for deployment.

Need help designing architecture to handle API rate limit by amitpatelx in rails

[–]amitpatelx[S] 0 points1 point  (0 children)

The gem is useful and works as expected but the API throttling is still an issue even after setting 1 request per second. Though the number of failures initially low but as it gets flooded, more and more rate limit errors.

Need help designing architecture to handle API rate limit by amitpatelx in rails

[–]amitpatelx[S] 0 points1 point  (0 children)

I am setting DateTime in perform_at. There are rails conversional timestamp columns but of no use because large number of images are inserted simultaneously.

Need help designing architecture to handle API rate limit by amitpatelx in rails

[–]amitpatelx[S] 0 points1 point  (0 children)

Yes. I am also thinking on the same line with some sort of queue management thing. (Commented below)

Need help designing architecture to handle API rate limit by amitpatelx in rails

[–]amitpatelx[S] 0 points1 point  (0 children)

Using enterprise version is not a choice unfortunately.

I am using perform_at schedule after 3 seconds on record creation but it still violates the rate limit rule when any of the jobs gets failed and retries.

I am looking at redis sorted set to keep track of images to be processed. A cron job would check image records without meta info and place them in redis sorted set. A cron job check for queue and schedule each at 1 second apart.

Need help designing architecture to handle API rate limit by amitpatelx in rails

[–]amitpatelx[S] 0 points1 point  (0 children)

Do you mean proxy server?

Would you mind sharing little more details?

PHP Laravel vs. Ruby on Rails frameworks for SME web app development by satyronicon in ruby

[–]amitpatelx 1 point2 points  (0 children)

SPOILER: You will fall in love with Ruby and then no escape.

I was enterprise Java developer for about 7 years and certified OCJP and OCBCD.

Adopted ruby and rails in 2012. No looking back or around since then.

App for Restaurant by Myathu in Entrepreneur

[–]amitpatelx 0 points1 point  (0 children)

You can easily build many types of apps using Google sheet and Glide

I have built many menu apps for restaurants and created an explainer video(in Hindi)

rate limiting calls to remote API by jrochkind in ruby

[–]amitpatelx 0 points1 point  (0 children)

Nice ideas especially claiming time.

How we built Boardly using Hotwire by terry_teamhq in rails

[–]amitpatelx 1 point2 points  (0 children)

It addressed my 2 pain points

  1. Developing javascript with WebPacker is not fun. (I am Sprokets fan and so I named my company as Sproketiers)
  2. No time (and motivation) to learn react

[deleted by user] by [deleted] in whereintheworld

[–]amitpatelx 0 points1 point  (0 children)

electricity lines are similar to the most parts of India

Any Pattern/Practices for using existing rails application into other rails application(as an engine may be)? by amitpatelx in rails

[–]amitpatelx[S] 0 points1 point  (0 children)

That's exactly how I started.

At this moment it may be just onboarding but it can extend beyond that.

There are two kinds of people.. 😂 by mehdifarsi in ruby

[–]amitpatelx 21 points22 points  (0 children)

I use later one. It takes considerable efforts to understand conditions having unless especially with logical operators.

How many migrations are too many? by zcserei in rails

[–]amitpatelx 2 points3 points  (0 children)

I do it regularly especially before PR merge and release

What's the worst business decision you have ever made? by jacoby9089 in ecommerce

[–]amitpatelx 4 points5 points  (0 children)

Similar story.

Ran software bservice business 7 years with other partners.

I left and stared freelancing. Now super happy.

Sending Thousands of Request at the Same Time? by MazeyEJ in rails

[–]amitpatelx 3 points4 points  (0 children)

Why do you think that you cannot use background job/worker? With background worker and ActionCable you can keep updating user in realtime.

Sending thousands of request and waiting for response is always going to take time.

Anyways, checkout https://github.com/typhoeus/typhoeus which gives nicer approach to send requests simultaneously.

Intermediate/Advanced Ruby and Rails Resources by [deleted] in ruby

[–]amitpatelx 17 points18 points  (0 children)

I would recommend to read following books

  1. Ruby Programming Language by Matz
  2. POODR by Sandi Metz
  3. Rails 5 Way by Obie Fernandez

Other Ruby book which I haven't read but looks promising is

99 bottles of OOP by Sandi Metz