1,114 reputation
26
bio website
location
age
visits member for 2 years, 11 months
seen 6 hours ago

Jan
23
comment Design a system for real time events delivery
Take a look at Enterprise Service Bus (ESB) and other message queue solutions? There are plenty of them available. Some more traditional, some more recently. A specific answer is not possible because there are many more constraints. Generally this kind of systems are not setup many times because it would be premature optimisation. When there is already a system if would be built from that starting point. That's all missing information.
Jan
21
comment Multiple users using the same script for their websites
Sorry but you fairly forget about so many issues all fixed in for example distributed queue software. Think about capacity planning, scaling, logging etcetera. You would all have to build it by yourself. Also you would need storage for that, for example: Did the job for client X ran the last 60 minutes? If you would use something like a distributed system you could just find the logs in a database. Now you have to build it. Also don't forget that jobs can fail, timeout etcetera. Your queue system will take care of that, retries and alert you. So, nice thing to build for fun but not for scale.
Jan
17
comment How should nodes in a chain be connected?
For this kind of concepts it's very relevant to know who could change the connections (or event the nodes) as hardcoded references make it quite impossible to change without direct access to the source. Also it's interesting to look at visual programming, since that seems to be quite interesting for this kind of processes: noflojs.org Microsoft has some visual programming too for mainly robotics: en.wikipedia.org/wiki/Microsoft_Robotics_Developer_Studio
Jan
10
comment Good or bad idea to create a “fromJSON” static factory constructor for an object that is often created by parsing a JSON coming from API?
try something like this: en.wikipedia.org/wiki/Builder_pattern to separate building the class from the actual methods the class needs.
Jan
7
comment Architecture for an event admission ticket scanner for events with multiple entries
Implement a check on the moment when there is connection available and sync starts so that you can log how many times each ticket has been used and on which devices. First: that gives you an indication whether it's a real problem. Second: That way you can give useful information to the end-client about where they should prevent this in real life OR why they should invest in decent connections. The problem is only possible to solve when you have connections between the terminals. When it's a big problem there will be budget to get those connections.
Dec
2
comment A separate endpoint specifically for sync in a REST api
Http has upgrade commands which allow the client to upgrade the connection from a simple request to for example a stream. developer.mozilla.org/en-US/docs/Web/HTTP/… So for example if you make a list with all changes (audits) you can do: GET /audits/userid and then upgrade the connection to like a stream to stay up to date.
Oct
31
comment Looking for encryption method
This is doable if you, like you said, trust the black box: Create a hash of the backup. Store it somewhere, maybe in a file. Store all previous hashes also, so keep a history of them. Then when black box is asked to import a file just hash the file and see if you know it. If you don't know it don't load it. A hash like md5 will do sufficiently here. Also a MAC as noted will work. You just don't want to see the file get out and changed. Encryption is an option here (if you don't want them to able to read) but it might also give big issues because you cannot bypass that if well implemented.
Oct
16
comment Sending multiple resources under REST endpoints
Are sensors available on multiple devices with the same id? If that is the case don't you need some kind of sensor type? Generally what you want is not great for this kind of matrix things. Some times it helps to put a resource in between like a group of sensors maybe. Depends on your data: /sensorsgroups/s1 could get sensor s1 from all devices for example.
Oct
8
comment 3d Packing algorithm for item's shipping
@rcdmk Be careful about how your users will respond. The discussion might not be whether or not it's difficult. There can be personal feelings here if you say how they should do their work.
Oct
8
comment How often should internal applications be deployed?
@MattN. You are talking about a rewrite and the expectations of users. Because likely the rewrite will take time. So it will delay those smaller fixes users want. Now I don't want to bother you with the whole discussion but if this system works: Why don't you just keep bug fixing and improving?
Oct
2
comment Git Workflow for multiple sites sharing common functionality
Fix it in the code, so make plugins or template repositories of them for example. It's not something you fix in version control.
Sep
25
comment Email service or simply abstract email out and call from?
Throw an event instead of calling directly. So raise the event: CompanyCreated. Let event listeners attach to it and handle the event. They become decoupled and you can easily attach multiple, for example: SendEmailListeren, SendIphoneNotificationListener etcetera.
Sep
22
comment How to express what do do when error occurs in a user story?
Yes you are right but it's important to group all "creditcard payment" stories in one deliverable feature/epic whatever you name it. Because for business it's unacceptable to have one story (the happy path) delivered without the error path. So you need a system which makes sure you don't deliver a piece of it because it can harm. Some example I found here: iserialized.com/features-vs-user-stories-in-scrum See also the follow ups.
Sep
22
answered Should I mark what blocks mean in data-* attributes?
Sep
20
comment PHP as a target language
If it's about the costs as I read in your comments: There are so many cheap VPS companies, like digital ocean etc, which give you a server for 5 dollars or even less per month. It it really the costs?
Sep
16
comment How to design RESTful Web Api to represent Resources
Done, thank you!
Sep
16
answered How to design RESTful Web Api to represent Resources
Sep
12
comment HTTP Request & Response Parameters
This seems to give an insight on the differences: johnnycode.com/2013/10/30/… An array is an internal type of your platform (php/.net etc) so that has no relation with the POST type you are receiving. Your platform will convert it for you to make it easier for you to use in most of the cases.
Sep
11
answered HTTP Request & Response Parameters
Sep
11
answered Anonymous access to api REST, protection