Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can i use it for an interactive resident memory application? #356

Open
PandyYang opened this issue Nov 26, 2022 · 0 comments
Open

can i use it for an interactive resident memory application? #356

PandyYang opened this issue Nov 26, 2022 · 0 comments

Comments

@PandyYang
Copy link

I am currently researching this CGO to create a dynamic link library, which is an so file, which can be imported by many different languages.

Then there was a little problem during deployment, that is, how to make my so file wrap a cli through the outer layer when it is used, for example, give it a command start, it can open up memory and be resident, because some configuration files need to be loaded , initialize the redis connection pool, etc., and then there is a stop to do a cleanup when it is used up. Does anyone have any ideas to help Mengxin.

I found some information by myself, such as load the config use sync.Once. and using that kardianos/service, but the official website seems to say that it can only be used as a daemon process. Now I want to use it as an application that provides services. The difference from web services is that it is directly imported by other programs without opening ports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant