如何自动检索队列 [英] How to automatically retrieve queue

查看:95
本文介绍了如何自动检索队列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!我目前正在构建一个排队系统并需要帮助。



我想问一下如何设置我的系统以在突然断电后自动检索当前队列。可以这样编程我的系统吗?感谢我能得到的任何答案。



我的尝试:



Hi everyone! I'm currently building a queuing system and in need of help.

I wanna ask how I can set my system to automatically retrieve the current queue after a sudden power interruption. Is it possible to program my system like that? Thanks for any answer I can get.

What I have tried:

<N/A>

<N/A>

<N/A>

<N/A>

<N/A>

<N/A>

推荐答案

我们无法告诉你:我们不知道你的队列是什么,在哪里你存储它,你如何存储它,你正在使用什么硬件。



电源故障是硬件事件:你不能用软件代码绕它们电源故障时,软件停止运行。要优雅地恢复,您需要将整个系统设计为容错,并在重新启动时恢复 - 我们不知道您的系统是什么。如果电源在保存中途失败,你会怎么做才能从中恢复?



我?我使用UPS来缓解短暂的电源故障,并通知我,以便我可以执行有序的关机和恢复操作。如果您的队列对您很重要,您可能需要考虑该路线。
We can't tell you: we have no idea what your queue is, where you are storing it, how you store it, what hardware you are using.

Power failures are hardware events: you can't "code round them" with software as when the power fails, the software stops running. To recover gracefully, you need to design your your whole system to be fault tolerant, and to recover when restarted - and we have no idea what your system is. If the power fails halfway through a save, what do you do to recover from that?

Me? I use a UPS to mitigate the short power failures, and to notify me so I can do an ordered shutdown and recovery operation. If your queue is that important to you, you might want to consider that route.


这篇关于如何自动检索队列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆