|
Nand32 wrote: The hint that the new data is available happens through "Push". I'm happily querying a webserver for a file by requesting its header along with the last datetime of my file. If my file is from the same date, it will only send a header back with a 403 (Not modified) (from cache).
If the clients need to be useable during the download, I'd go for the BITS-service that Windows uses to download its own updates. If the fetching of the data is more important than the clients responsibility, I'd search CodeProject for a download-manager and open 10 connections to the server from the client and have each download 1/10th of the file.
If speed is paramount then I'd recommend QNX, not Windows.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
|
|
I have an app that has 3 sets of features. The Agent, Dispatcher, and Admin.
Each's ones use the same Domain Models but the context of use is different.
And now, the Admin gets the Ticket Object that has data in it used by the Agent and the Dispatcher.
The app has a backend in Java and frontend in Angular. The communicate overt HTTP + JSON.
Should I separate them by domain, and create 3 separate microservices?
Would that be an overkill, as the app is not big?
Or should I keep the app as a monolith, and just reorganize the code in packages Admin Package, Dispatcher Package, etc... ?
|
|
|
|
|
Since all those features use the same bounded context there is really no need for splitting up the system in microservices.
Quote: and just reorganize the code in packages Admin Package, Dispatcher Package
This is nice idea. Sort of vertical slices.
|
|
|
|
|
I remember this from when I was a student, I'm sure my lecturer called it something like "state shadowing" (permutations of that name covered by the "shadow state" and "variable shadowing") - basically what I'm remembering is related to hardware programming where there's a time cost associated with querying the state of a connected hardware peripheral, so when setting the hardware state you also set a variable in-memory - that way whenever you need to know the hardware state you can just reference the variable.
Does anyone know what this kind of pattern would be called?
I'm looking for some inspiration on how to design something, so I'm just looking for any kind of related literature, but it's a bit hard to find anything when you don't know the name.
|
|
|
|
|
I would call it a cached result, but maybe some other term is in common usage among embedded system developers who work close to the hardware. Objects sometimes do the same thing to avoid calculating a result that clients frequently use.
|
|
|
|
|
A virtual machine.
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
Hi,
We are starting a new project and are discussing about which architecture to use in our project.
We want to decide between Monolithic and Microservices architecture.
Just to give a overview of our project,
We have four functional modules, each with a specific functionality.
Each of these module is part of a process flow of the project.
After completion of each stage of the flow, that data will be used by the next module for further processing.
This will be a web application which can be used by anyone by registering.
Number of hits to this application may not be as much as with other applications, as it will be used only by people with specific expertise.
May be by around one million people.
Please suggest your thoughts on how to go about this project.
|
|
|
|
|
The only time "monolithic" works, is when making bricks. And you believe there is only one alternative?
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
Hard to say, I don't feel like there is enough info. But it sounds like you could have 1 db that each process (.net service, azure function, console app, whatever it is) can then access.
Social Media - A platform that makes it easier for the crazies to find each other.
Everyone is born right handed. Only the strongest overcome it.
Fight for left-handed rights and hand equality.
|
|
|
|
|
Member 14786750 wrote: Which architecture x86. Any other questions?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
My thinking is that microservice architecture brings a lot of operational complexity and inter-service communication (i.e. you should handle failures during communication gracefully, manage contract changes between services, etc). So you should consider them carefully not just use them as a new default.
I also feel that there are not enough details in your questions. But I think you should use microservices:
- if some of processing stage is more resource-consuming and you need to deploy multiple instances of it.
- if your processing stages belong to different bounded contexts or business domains.
If the goal is just to reduce code complexity then SOLID and vertical slices are your friends.
I guess the most sensible approach is to start with a monolith and extract microservices once needed.
|
|
|
|
|
Hi,
Thank you for sharing your thoughts. I will be sharing the same with my team and will take a call.
|
|
|
|
|
Hi everyone,
I am working on a browser-based document scanning application for IE it is fine as we can do scanning through ActiveX or Add-ons etc but when it comes to modern browsers like latest chrome, firefox and edge it is very hard to call any .exe or other is related functions from client-side .. What is the option to invoke scanner from modern browsers and do necessary file I/o on client end... Please don't mention proprietary software I prefer to work with open-source solutions.. regard
|
|
|
|
|
|
It's possible to do but you cannot do it using only javscript in the browser. Code running in the browser has no access to anything on the client. No access to the file system, display, scanners, ... nothing. All it can do external to the browser is talk to web servers. But, there is no restriction on where that web server has to be running.
You have to write a service application to be installed on the client. This service has two sides to it, the first being an interface to the scanner, doing all of the work of controlling the scanner and managing the resulting files on the client machine.
The other side of the service is a web server, exposing a controlling interface that can be used from the javascript code in your web page. This interface would be a WebAPI or similar. The functions you expose would have to be everything the javascript code is going to need to control the scanner, through the service.
|
|
|
|
|
Working on .Net Core MVC web application hosted in Azure App Service with WAF (Web Application Firewall) enabled. WAF rules are blocking the File upload functionality. When the rules are turned OFF, application works fine. Does anyone know how this can be fixed?
Regards,
John
|
|
|
|
|
Is there any error logged whenever upload is failing?
"Five fruits and vegetables a day? What a joke!
Personally, after the third watermelon, I'm full."
|
|
|
|
|
It depends entirely on the rule set that you're using. It's possible that you've got a content-type on the upload that ModSec doesn't like, or that you're using something other than POST to send a file and it doesn't like that, or even that it's tuned to completely disallow uploads.
The logs ModSec is generating will tell you which rule is getting triggers, and should help you figure out how to resolve the issue.
"Never attribute to malice that which can be explained by stupidity."
- Hanlon's Razor
|
|
|
|
|
Hi,
I'm able to add commands to the Windows Explorer throu the registry. However, how do I set one on the commands as default?
I'm noticed that Open is always there but Open is not Always what I want to be the default.
Jan
|
|
|
|
|
I'm working on an embedded communication protocol where bytes will be transmitted. In my packets, I can only allocate 7 bits for integrity check. If I just sum up the bytes module 256 and then throw out the MSb, then I suspect errors in the first bit in each byte would not be detected. Can someone please recommend a computationally inexpensive method that is a little more robust? It needs to be computationally inexpensive because it could potentially run on small, slow microcontrollers.
|
|
|
|
|
You could XOR the nibbles of each byte together and use aggregate those values as your checksum. It's not perfect, multiple errors in a byte could lead to collisions, but it's better than the alternative and should still be speedy.
"Never attribute to malice that which can be explained by stupidity."
- Hanlon's Razor
|
|
|
|
|
Hi,
I added a submenu to the Windows explorer for directorys. Unfortunately not all the items are visible.
Is there a way to show more items than 16 incl all subitems?
I was working with ExtendedSubCommandsKey.
I really mean menutems and not fileitems.
jan
Sorry if this is not the right place to ask this. The program is writen in vb.net but the question is stricly Windows.
|
|
|
|
|