2017
Aug
24
comment RESTful APIs vs complex processing - an alternative
@CormacMulhall I think this is by far the most meaningful comment so far, although it does not answer the question, it does point out a very important aspect of REST.
Aug
20
comment RESTful APIs vs complex processing - an alternative
oh and I forgot completely - thanks for the links :) I will definitely check them out. I actually know the theory behind microservices (just like I know theory behind REST, SOAP, etc.), but I have trouble picking right patterns / architectures and taking them from theory to practice :)
Aug
20
comment RESTful APIs vs complex processing - an alternative
this is mostly right :) I currently have a monolithic app that eventually I'd like to re-factor into 12-factor app (or set of apps, since I have few apps already). At the moment I'm looking to make the 1st step by making it use API (separate front-end & back-end). This is to allow easy building of mobile app for example. I can easily turn some cases to be RESTful due to natural resource behaviour. But with given example it does seem confusing & bringing a lot of overhead.
Aug
20
comment RESTful APIs vs complex processing - an alternative
@k3b well, there's a paragraphs starting with "let's get to the question". But basically the question is whether REST is suitable for such problems, despite the overhead and "hiding" lots of resources from user or is there a better pattern for complex APIs?
Aug
18
revised RESTful APIs vs complex processing - an alternative
added 320 characters in body
Aug
18
asked RESTful APIs vs complex processing - an alternative
May
26
accepted Javascript queue-like key-pair sorted collection
May
26
comment Javascript queue-like key-pair sorted collection
I see, that you for clarification. So I could run "garbage collection" in the same method I process my queue then. I will definitely use this approach of yours which is something I've missed being too focused on finding one collection that would handle it for me. I do have just one question though, seems you see to know more about JS than I do. Do you know any good Queue implementation for JS (node.js)? I couldn't find any :)
May
26
comment Javascript queue-like key-pair sorted collection
Just to clarify on deque. I could then have another loop to periodically remove (starting from "behind") invalid entries. But I suppose this may not be necessary as long as the queue performance does not degrade with 10000~ entries.
May
26
comment Javascript queue-like key-pair sorted collection
This looks very promising! I think I'm more CPU constrained than memory, so the second approach seems like a great fit. I only see one issue there, perhaps I missed something, but the if conditions and return will cause some entries to get stuck in the queue? Like having an invalid, not expired entry "after" (queued before) the valid and not expired entry which breaks the loop with return? Having in mind this would run every 15 seconds, I can imagine there may be even 10 queue entries per ID by that time. Would using deque significantly affect performance?
May
26
comment Javascript queue-like key-pair sorted collection
@ErikEidt oh, but it's possible to set new timestamp for ID that is already in use and this would require sorting / re-ordering.
May
26
comment Javascript queue-like key-pair sorted collection
@ErikEidt yes, the timestamp is a current timestamp, there would be a method receiving only ID, getting current timestamp and inserting that pair into the collection :) I would use a simple queue for this, but I don't think queue is capable of ensuring key uniqueness
May
25
asked Javascript queue-like key-pair sorted collection
Apr
22
awarded  Commentator
Apr
21
accepted Windows Qt5-based app porting to Linux
Apr
21
comment Windows Qt5-based app porting to Linux
alright then, I did more research and it seems like a part of a compiler indeed, so it should be fine too! Thank you :) I will mark your answer as correct then
Apr
21
comment Windows Qt5-based app porting to Linux
Right, thank you. What about these non-Qt libraries? I'm not sure if I identified the "libgcc_s_dw2-1.dll" well. Any idea what that is (if it's not SFML) and whether it's available for linux?
Apr
21
awarded  Supporter
Apr
21
comment Windows Qt5-based app porting to Linux
@Matthew and don't get me wrong, I know how to compile things on Linux (well, most of the time), but I mainly work with .NET Core and have never really worked on any C++ project on Linux, that's why I'm not sure how to port what I have to Linux. Should it take any additional steps I'd like to know, rather than spend hours trying to figure out what I have missed
Apr
21
awarded  Editor