This is pretty sweet! I especially think this could be useful for maybe a team trying to gain a little extra performance without having to migrate an entire Rails stack over to something new. Thanks for writing this up!
Now the next step is to get a Ruby gem that ports Rack functionality in to Crystal somehow so you can just mount a Kemal engine 😂
This approach is more efficient than using an engine because it skips the interpreter process of Ruby entirely, that's why I did it this way. I won't lie though I considered the engine first because it wouldn't require running NGINX locally. I have an ORM working in parallel with AR, so my next article is going to be around how to make that happen. That's where I think a gem may come in handy, and I've considered writing a gem that hooks into Rails so when the Rails generators are used it'll also generate models with the attributes into the crystal folder
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This is pretty sweet! I especially think this could be useful for maybe a team trying to gain a little extra performance without having to migrate an entire Rails stack over to something new. Thanks for writing this up!
Now the next step is to get a Ruby gem that ports Rack functionality in to Crystal somehow so you can just mount a Kemal engine 😂
This approach is more efficient than using an engine because it skips the interpreter process of Ruby entirely, that's why I did it this way. I won't lie though I considered the engine first because it wouldn't require running NGINX locally. I have an ORM working in parallel with AR, so my next article is going to be around how to make that happen. That's where I think a gem may come in handy, and I've considered writing a gem that hooks into Rails so when the Rails generators are used it'll also generate models with the attributes into the crystal folder