|
|
It depends upon the purpose of the service. Our automated build process runs as a service on our department servers. The process is essentially a finite state machine, and the build machine/service can be stopped and restarted at any state transition. When we first started with this version of the process, some of our builds took over 90 minutes. The ability to pause and cancel a build were important, especially with three servers sometimes each running multiple builds. We've stolen pilfered inventively acquired some better hardware for our servers, so most of our builds are down to 15 minutes or less. This has reduced the need for the pause/resume facility, but it's still nice to be able to restart a build server while a build is in progress, and the build still completes.
The only place where our approach has unexpected results is that the service implements a lightweight framework where we can perform product-specific actions as part of the process. If you change that code while a build using it is executing (easy to do while debugging), the results are... interesting. After doing this to myself several times, I modified the post-build step for the build service to delete existing build state.
Software Zen: delete this;
|
|
|
|
|
A camel is a horse designed by a committee. We just don't know if the committee was designing a very efficient machine for crossing the desert or something to run very fast.
In your case we don't know if the client needs a timely result, in that case it would be foolish not to check if the server is running or not ("buy me a ticket to yesterday's show" sounds like a silly request).
If your framework is something that's going to be used in different ways by different people you need to give them the option what to do in each case. Also give clients a way to find out what's going on.
Mircea
|
|
|
|
|
Man - restart the service and all queued messages have been forgotten.
Woman - restart the service and all queued messages continue to be delivered.
I suggest you create two services, one with an obvious male gender name, the other with an obvious female gender name. That would meet the criteria of "intuitive."
|
|
|
|
|
Fred and Wilma
Real programmers use butterflies
|
|
|
|
|
Bonnie and Clyde? Beth and Jerry?
|
|
|
|
|
as others have said, 'it depends' (on what the service is doing) - I have worked with transactional or persistent messaging systems, where messages are backed to file for example - that would add another can of worms for you, although it could be an extensible 'option'
|
|
|
|
|
Possibly hot take but if logging is a "can of worms" you may want to reconsider your architecture.
|
|
|
|
|
I didnt mean it quite like it seems to have been taken, but in a lot of respects you're correct, there's no reason why persistent messages can't be logged to a seperate message file using standard logging constructs
|
|
|
|
|
If your service is stopped it shouldn't attempt to process outstanding messages. When you stop or start a service your service has a set time to respond, beyond that time the OS regards it as being out of control. If you processed outstanding messages when the service is stopped it could push you beyond the time your service has to stop. Beyond that it's semantically correct too; when I push the brake to stop my car I don't care what it is doing, I want to it stop now.
|
|
|
|
|
That would be ok for simple web sites, who cares there to refresh several times. _Never_ applicable in a production environement.
Only my 2 cents.
It does not solve my Problem, but it answers my question
Chemists have exactly one rule: there are only exceptions
modified 19-Jan-21 21:04pm.
|
|
|
|
|
honey the codewitch wrote: Right now I'm thinking if it's paused it should, and if it's stopped it shouldn't.
At a minimum you need an easy way to flush messages without using the service if it defaults to retrying on startup. If not, it only takes one message triggering a crash bug early enough in the processing to trigger a DOS fault otherwise. "Early enough" is defined as "before anything in the service can decrement a retry count/etc to prevent this from happening".
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|
|
It depends on what the service does and on what each message is.
|
|
|
|
|
Due to the Covid situation, some have suggested that you should not be allowed to walk around with an infectious disease. Seems reasonable. However, there have always been and there always will be infectious diseases (I presume) so what is the answer? And 99% of the time we carry such a disease we don't even know it.
Do we make masks in public required forever? No more handshakes ever again? (Sports athletes will have to get much more creative). Social distance forever? Lysol everything? (Might have to buy their stock.)
Our company is not enforcing masks. Is yours? How do you deal/cope with it? No big deal? Uncomfortable? I see so many people wearing masks even when they are alone that I think they have become a fashionable item.
Just curious if people think any of these changes will or even should become the normal forever.
My opinion is that none of these things should become the normal. I could do away with the handshakes, that would be fine. Most people are just fist bumping now anyway. But I definitely do not want masks forever (can't hardly breathe in them and the world misses out on my handsomeness). Social distancing I could live with since I was already practicing that anyway, but as a norm I still think would be silly.
Thoughts?
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.
|
|
|
|
|
As in introvert I feel like I've been training my whole life for this moment.
Stay out of my bubble!
Real programmers use butterflies
|
|
|
|
|
We use our faces for communication, just as much as our mouths. Wearing masks as other than an emergency measure would cut of this important channel of communication. Bad Idea.
As for handshakes, much of the world never had the custom of handshaking; they use bows (which also indicate respective social standing), etc. Even in the parts of the world that have adopted it as a social ritual, it was not always so. I suspect that it could disappear with little effect.
As for social distancing, cultures have differing ideas of a comfortable social distance. One of the funniest things to watch is an Englishman and a South American trying to have a conversation. The Englishman's comfortable social distance is much larger than that of the South American, so the Englishman is trying to step back, while the South American is trying to step closer. I expect that we'll all become English in this regard.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Interesting points. Thanks.
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.
|
|
|
|
|
Disclaimer: My viewpoint is from the US.
My thoughts are that these "should we" conversations make one giant assumption: that you will have the reasonable option to choose. I believe modern medicine will eventually handle the situation despite all the self-preservationally-challenged people but that's no guarantee. In the general sense, I hope people will feel less socially awkward wearing a mask in the future if they believe they are sick with something. It's just a nice thing to do for anyone around you.
|
|
|
|
|
Jon McKee wrote: that you will have the reasonable option to choose I sure hope so. But interesting points. Thanks.
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.
|
|
|
|
|
I do too. Unfortunately this pandemic is a group issue requiring group responsibility and it's clear to see that that has never been our strength. Somehow concert permits are still being granted, "corona parties" are a thing, tourist destinations just don't care (see: beach cities), and an uncomfortably large number of people think it's all a hoax because their two brain cells have never collided and produced a critical thought in their entire lives.
It's bad.
|
|
|
|
|
Jon McKee wrote: and an uncomfortably large number of people think it's all a hoax because their two brain cells have never collided and produced a critical thought in their entire lives. To be fair, scientists have never been able to get on board with whether masks work or not. (Not blaming them, just stating a fact.) Hospitals have been caught lying about how many infected they have so we know the numbers are not as many as reported. Out of all the people I know and the extended people only one person has gotten the virus. And she worked a whole day in an open office WITH THE SYMPTOMS (bonehead) and no one else got it. So, when you look at all of those facts they don't add up to the same panic and scare that others see. I'm not saying it's a hoax, but from where I am sitting and when I rub my brain cells together I don't see this thing nearly as bad as others do.
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.
|
|
|
|
|
Jon McKee wrote: people will feel less socially awkward wearing a mask in the future if they believe they are sick with something
When I was in Japan (more than 25 years ago), people with colds walked around with masks. It seems that yet again the orient is ahead of the occident.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
It would be interesting to know the prevalence of colds in Japan.
Because if masks were effective you would expect to see a lower incidence of colds due to people wearing masks.
To take it to it's logically absurd conclusion - if masks prevented colds from being spread nobody would need to wear a mask.
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
|
|
|
|
|
So far, in 6 months, in the US at least, Covid19 only killed 0.05% of the people (and hospitalised 1%), so you can always ignore all of that if you think it's not significant enough... The US being pretty representative of what happen when you do nothing, I think....
Up to you man!
However I do understand the 1% of hospitalised people being angry at willing blissful ignorance of the rest...
|
|
|
|
|
Super Lloyd wrote: Covid19 only killed 0.05% of the people (and hospitalised 1%)
According to the CDC, COVID-19 has killed 0.045% of the entire US population, and infected 1.29% of the US population.
A survey of states making up ~10% of the US population of laboratory-confirmed hospitalizations give the number of hospitalizations as 39,432 (as of the week ending 18-Jul-2020), or about 400,000 hospitalizations in the entire US. These make up 0.12% of the population.
A disclaimer on the CDC site notes that the number of hospitalized patients is an underestimate - depending on the hospital's procedures, not all patients exhibiting symptoms are necessarily tested for COVID-19. However, I strongly doubt that the CDC survey has missed 90% of the hospitalizations.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|