http://amberframework.org - Questions? Post on StackOverflow and contribute to community knowledge! https://stackoverflow.com/questions/tagged/amber-framework - IRC? Share your chat messages across http://webchat.freenode.net/?channels=#amber
id best leave it to them, i dont know much about amber/websockets
whew yeah it was the hardest ive ever programmed
I'd deff squash merge that fwiw ^
the problem i'm dealing with is the final problem and i think something you might be good at @Blacksmoke16 ... its just a concurrency problem with the websocket RFC ping... simple code... but i'm not sure if i'm sleeping or fiber.yielding too much or not enough but i know loops and spawns and receives have to be balanced from experience
ill squash for you
@Blacksmoke16 I smashed the commits down to 2 commits for you George :)
if that helps
@mixflame I will try to help as soon as I can. I am really busy right now trying to get a new product MVP ready. The next stage of the product will be making heavy use of websockets and Redis Pub/Sub so when I make a start on that I will be able to do a review on your pull request. Hopefully within a few weeks, sorry I can't help any sooner.
wow @damianham I'm glad to hear that! I think you will definitely like what you find. I was able to stabilize and it's very speedy and stable. No need for more updates from me on the socket adapter pubsub patch. The last thing I had to do was make sure sockets weren't garbage collected due to race conditions because of my fiber using affecting crystal overall magicness. But we're great. :D Glad to hear that it will be getting some use. :)
doing stability tests
it does seems pretty stable on localhost, but there's been crashes on production so it's in the garage again
well... the patch seems stable. I may have overrun my memory limits some how for Crystal at some point, if I get that error again I'll paste it. I did patch it to make sure it never tries to delete a(web)socket that has already been deleted. I'm rolling with this so if there's anything wrong with it it will hopefully be fixed. :) :+1:
Rene Bon Ćirić (Renich)
Hello, Amber community! o/
Let's say I created src/assets/images/some_pic.jpg and I want it to show it it in a view. I would expect webpack to put it at public/dist/images/some_pic.jpg ready for web. Is this assumption correct?
Rene Bon Ćirić (Renich)
OK, when validating, how do you declare a file as required (upload)?
image would be in params.files, as in params.files[:image] so you need to validate params.files[:image] exists in your controller method not in the params validators as teh validators work on keys in params
What's the status of GraphQL support in Amber framework?
Most of us using Amber probably come from a Rails background and many will remember ActiveSupport::Memoizable. I now have a candidate for memoizing the output of a request where every user in a province will request the same data with the same parameters and get the same result until the data changes, which is not that often. I am thinking that caching the output of the request as a static file will significantly improve performance. I would then need a mechanism to remove the static file when the data is changed. Anyone have any thoughts on this ?