---
title: "Benjamin Silva Herrera (@silva96) | Hashnode"
description: "Software Engineer and Father. Love to learn, love to teach, love to build. CTO at recorrido.cl -> Ruby, Elixir, Vue / Stimulus"
url: "https://hashnode.com/@silva96"
---

@silva96

# Benjamin Silva Herrera

@silva96 · Santiago, Chile · Joined November 2020

Software Engineer and Father. Love to learn, love to teach, love to build. CTO at recorrido.cl -> Ruby, Elixir, Vue / Stimulus

[Website](https://96codes.dev/)

## Comments

[I'm loving this series, waiting for the part 3!](https://hashnode.com/posts/railscasts-retrospective-part-2-the-fire/655269ef8560ab64132d587b/comment/655275760701ac13578c6c04)

Comment · Article · Nov 13, 2023 · [RailsCasts Retrospective Part 2: The Fire](https://hashnode.com/posts/railscasts-retrospective-part-2-the-fire/655269ef8560ab64132d587b)

[Buen tip Rodrigo!](https://hashnode.com/posts/prevenir-excepciones-al-validar-modelos-de-activerecord/60a30d31b7d0a531c6aa5a42/comment/60a3c18fb7d0a531c6aa7053)

Comment · Article · May 18, 2021 · [Prevenir excepciones al validar modelos de ActiveRecord](https://hashnode.com/posts/prevenir-excepciones-al-validar-modelos-de-activerecord/60a30d31b7d0a531c6aa5a42)

[Best wishes for the team and the future of the platform, keep it up!](https://hashnode.com/posts/announcing-hashnodes-dollar21m-seed-round/5fd8cf6c7e242e208adca39d/comment/5fd936b6ea368e206535d6f5)

Comment · Article · Dec 15, 2020 · [Announcing Hashnode's $2.1M seed round](https://hashnode.com/posts/announcing-hashnodes-dollar21m-seed-round/5fd8cf6c7e242e208adca39d)

[Chris on Code I believe Syed Fazle Rahman refers to this https://webmonetization.org/](https://hashnode.com/forums/thread/i-started-the-web-dev-site-scotchio-ama/comment/5f562a682315421b4bdb0c28#reply-5fc140682cae9c5b190b6a1e)

Reply · Thread · Nov 27, 2020 · [I started the web dev site, Scotch.io. AMA!](https://hashnode.com/forums/thread/i-started-the-web-dev-site-scotchio-ama)

[great explanation, thanks! Andrew Brown](https://hashnode.com/posts/running-ruby-on-rails-with-aws-lambda-clouddive/5fb5bd75ba1e08716c77d21f/comment/5fbfa6ce1a95c63e9c0f46ce#reply-5fc0409b7f8d06480aa0eabc)

Reply · Article · Nov 26, 2020 · [Running Ruby on Rails with AWS Lambda (CloudDive)](https://hashnode.com/posts/running-ruby-on-rails-with-aws-lambda-clouddive/5fb5bd75ba1e08716c77d21f)

[Piotr Jurewicz Yes that's a good way to tackle down "most" of possible sources that can cause a process to die. But of course there might be other. For instance, if you have your rails app in the same instance, it can grow in ram too, so even having sidekiq with low memory usage, the system can enter a "resource starvation" state and the Kernel would kill proceses to safeguard the system state. The way the Kernel chooses this proceses is based in many factors, so there's still chance your sidekiq dies.](https://hashnode.com/posts/2-amazon-aws-elastic-beanstalk-extensions-you-need-to-work-with-sidekiq/5fbeda3008c16c34b89c4889/comment/5fbef23ed73a0534d9b517fa#reply-5fbfc565b27eed41baa5c7e1)

Reply · Article · Nov 26, 2020 · [2 Amazon AWS Elastic Beanstalk extensions you need to work with Sidekiq](https://hashnode.com/posts/2-amazon-aws-elastic-beanstalk-extensions-you-need-to-work-with-sidekiq/5fbeda3008c16c34b89c4889)

[Whats the benefits or differences between lamby and rubyonjets ?](https://hashnode.com/posts/running-ruby-on-rails-with-aws-lambda-clouddive/5fb5bd75ba1e08716c77d21f/comment/5fbfa6ce1a95c63e9c0f46ce)

Comment · Article · Nov 26, 2020 · [Running Ruby on Rails with AWS Lambda (CloudDive)](https://hashnode.com/posts/running-ruby-on-rails-with-aws-lambda-clouddive/5fb5bd75ba1e08716c77d21f)

[I hate there's no syntax highlighting for elixir defmodule ThatSucks do def call do IO.puts("YES, indeed it sucks") end end](https://hashnode.com/posts/pattern-matching-in-elixir/5f7c73b1810147687ff4e2f9/comment/5fbef60d08c16c34b89c4965)

Comment · Article · Nov 26, 2020 · [Pattern Matching in Elixir](https://hashnode.com/posts/pattern-matching-in-elixir/5f7c73b1810147687ff4e2f9)

[What happens if the process dies? you are not using a process manager like upstart, systemd or supervisord. We have al these scripts to manage sidekiq properly. commands: 02\_create\_sidekiq\_log\_file: command: touch /var/log/sidekiq\_worker.log files: "/opt/elasticbeanstalk/support/conf/sidekiq\_worker.conf": mode: "000755" owner: root group: root content: | description "Elastic Beanstalk Sidekiq Background Worker" # Greatly reduce Ruby memory fragmentation and heap usage # https://www.mikeperham.com/2018/04/25/taming-rails-memory-bloat/ env MALLOC\_ARENA\_MAX=2 respawn respawn limit 3 30 # TERM is sent by sidekiqctl when stopping sidekiq. Without declaring these as # normal exit codes, it just respawns. normal exit 0 TERM # Upstart waits 5 seconds by default to kill a process. Increase timeout to # give sidekiq process enough time to exit. kill timeout 30 script exec /bin/bash <<"EOT" EB\_SCRIPT\_DIR=$(/opt/elasticbeanstalk/bin/get-config container -k script\_dir) EB\_SUPPORT\_DIR=$(/opt/elasticbeanstalk/bin/get-config container -k support\_dir) . $EB\_SUPPORT\_DIR/envvars . $EB\_SCRIPT\_DIR/use-app-ruby.sh EB\_APP\_DEPLOY\_DIR=$(/opt/elasticbeanstalk/bin/get-config container -k app\_deploy\_dir) cd $EB\_APP\_DEPLOY\_DIR echo "Bundle exec sidekiq worker" exec bundle exec sidekiq -e ${RACK\_ENV} \\ -C ${EB\_APP\_DEPLOY\_DIR}/config/sidekiq.yml >/var/log/sidekiq\_worker.log 2>&1 EOT end script files: "/etc/init/sidekiq\_worker.conf": mode: "120400" content: "/opt/elasticbeanstalk/support/conf/sidekiq\_worker.conf" "/etc/init/workers.conf": mode: "000755" owner: root group: root content: | description "Manages the Set of Sidekiq Processes" # Use "sudo stop workers" to stop all Sidekiq instances. # Use "sudo start workers" to start all instances. # Use "sudo restart workers" to restart all instances. # This starts upon bootup and stops on shutdown start on runlevel \[2345\] stop on runlevel \[06\] pre-start script sudo start sidekiq\_worker end script post-stop script sudo stop sidekiq\_worker end script commands: reload\_initctl\_for\_sidekiq: command: "sudo initctl reload-configuration" files: "/tmp/sidekiq\_mute.sh": mode: "000755" owner: root group: root content: | #!/bin/bash skwpid=$(initctl status sidekiq\_worker | grep /running | awk '{print $NF}') if \[ -f skwpid \] then echo "TSTP/quieting sidekiq worker" sudo kill -TSTP skwpid fi files: "/tmp/sidekiq\_restart.sh": mode: "000755" owner: root group: root content: | #!/bin/bash skwpid=$(initctl status sidekiq\_worker | grep /running | awk '{print $NF}') if \[ -f skwpid \] then echo "TERM/terminating sidekiq worker" sudo kill -TERM skwpid fi echo "STOPPING all sidekiq workers" sudo stop workers echo "STARTING all sidekiq workers" sudo start workers files: "/opt/elasticbeanstalk/hooks/appdeploy/post/50\_restart\_sidekiq.sh": mode: "120755" owner: root group: root content: "/tmp/sidekiq\_restart.sh" "/opt/elasticbeanstalk/hooks/configdeploy/post/50\_restart\_sidekiq.sh": mode: "120755" owner: root group: root content: "/tmp/sidekiq\_restart.sh" "/opt/elasticbeanstalk/hooks/restartappserver/post/50\_restart\_sidekiq.sh": mode: "120755" owner: root group: root content: "/tmp/sidekiq\_restart.sh" "/opt/elasticbeanstalk/hooks/appdeploy/pre/03\_mute\_sidekiq.sh": mode: "120755" owner: root group: root content: "/tmp/sidekiq\_mute.sh" "/opt/elasticbeanstalk/hooks/configdeploy/pre/03\_mute\_sidekiq.sh": mode: "120755" owner: root group: root content: "/tmp/sidekiq\_mute.sh" "/opt/elasticbeanstalk/hooks/restartappserver/pre/03\_mute\_sidekiq.sh": mode: "120755" owner: root group: root content: "/tmp/sidekiq\_mute.sh"](https://hashnode.com/posts/2-amazon-aws-elastic-beanstalk-extensions-you-need-to-work-with-sidekiq/5fbeda3008c16c34b89c4889/comment/5fbef23ed73a0534d9b517fa)

Comment · Article · Nov 26, 2020 · [2 Amazon AWS Elastic Beanstalk extensions you need to work with Sidekiq](https://hashnode.com/posts/2-amazon-aws-elastic-beanstalk-extensions-you-need-to-work-with-sidekiq/5fbeda3008c16c34b89c4889)
