PC SOFT
ONLINE REPOSITORY
FOR WINDEVWEBDEV AND WINDEV MOBILE

Home |  | Sign in | English US
Exemplo de Microserviço ou Serviço do Windows
Published by BOLLER
in the category Tools
New features
Microservice or Windows Service Example

On Windows NT operating systems, a Windows service is a computer program that operates in the background. It is similar in concept to a Unix daemon. A Windows service must be compatible with Manager interface rules and protocols. Service Control Manager, the component responsible for managing services in Windows. It is the Services and Controllers application, services.exe, which runs all services and manages their actions, such as start, stop.

Benefits:

It is controlled by the operating system and can start automatically on boot or on demand or restart when there is a failure and can be done remotely directly
You do not need to have a user logged in to run it and can impersonate other users
Has more security control and access control
Not visible
It cannot be closed by normal means, but can be controlled even better than a normal application, including easily stopping a hanging process, and can control and monitor all of this.


Disadvantages:

Cannot run more than one instance
Usually needs administrator privilege and needs an installation of it and of course, an update is not as simple as overriding an executable
Developing and debugging is more complicated, if you don't know how to do it right and understanding what has to be different can be problematic (not usually a good idea for those who don't master software development very well unless they do something very trivial)
Does not interact with the user
You need to know every service API and the quirks it requires.

Description
Microservice or Windows Service Example

Nos sistemas operacionais Windows NT, um serviço do Windows é um programa de computador que opera em plano de fundo.É similar, em conceito, a um daemon do Unix.Um serviço do Windows deve ser compatível com as regras e protocolos de interface do Gerenciador de Controle de Serviços (Service Control Manager), o componente responsável por gerenciar serviços no Windows. É o aplicativo Serviços e Controladores, services.exe, que executa todos os serviços e gerencia suas ações, como iniciar, finalizar.

Vantagens:

Ele é controlado pelo sistema operacional e pode iniciar automaticamente no boot ou sob demanda ou reiniciando quando há alguma falha e pode ser feito remotamente de forma direta
Não precisa ter um usuário logado para executá-lo e pode se passar por outros usuários
Tem mais controle sobre a segurança e controle de acesso
Não fica visível
Não pode ser fechado por meios normais, mas pode ser controlado de forma até melhor que uma aplicação normal, inclusive facilmente parando um processo pendurado, e pode controlar e monitorar tudo isto


Desvantagens:

Não pode rodar mais de uma instância
Geralmente precisa de privilégio de administrador e precisa de uma instalação dele e claro, uma atualização não é tão simples quanto sobrepor um executável
É mais complicado desenvolver e depurar, se não souber fazer certo e entender as o que tem que ser diferente pode ser problemático (não costuma ser uma boa ideia para quem não domina muito bem desenvolvimento de software a não ser que faça algo muito trivial)
Não interage com o usuário
Precisa conhecer toda API dos serviços e as peculiaridades que ela exige.

---

Microservice or Windows Service Example

On Windows NT operating systems, a Windows service is a computer program that operates in the background. It is similar in concept to a Unix daemon. A Windows service must be compatible with Manager interface rules and protocols. Service Control Manager, the component responsible for managing services in Windows. It is the Services and Controllers application, services.exe, which runs all services and manages their actions, such as start, stop.

Benefits:

It is controlled by the operating system and can start automatically on boot or on demand or restart when there is a failure and can be done remotely directly
You do not need to have a user logged in to run it and can impersonate other users
Has more security control and access control
Not visible
It cannot be closed by normal means, but can be controlled even better than a normal application, including easily stopping a hanging process, and can control and monitor all of this.


Disadvantages:

Cannot run more than one instance
Usually needs administrator privilege and needs an installation of it and of course, an update is not as simple as overriding an executable
Developing and debugging is more complicated, if you don't know how to do it right and understanding what has to be different can be problematic (not usually a good idea for those who don't master software development very well unless they do something very trivial)
Does not interact with the user
You need to know every service API and the quirks it requires.
Illustrations, screen shots
none
none
User reviews
(To evaluate this resource, click 'Write a review')
No review or comment? Be the first one!
ABOUT
RATING:
00No rating
DOWNLOADS:
41
UPDATED:
September 25, 2019
VERSION:
24
CONCERNS:
WINDEV
Minimum version: 24
SIZE:
749.5 KB