简体   繁体   English

如何从流程返回到前端后端流程?

[英]How to return from a process to a frontend backend process?

I need load 10.000 rows in my database google cloud sql using AppEngine with Java. 我需要使用Java的AppEngine在数据库Google Cloud sql中加载10.000行。 For this case, i use a proccess using backend, but i want advertise to user, how rows was wrong load? 对于这种情况,我使用后端处理,但是我想向用户做广告,行加载错了吗? But, i don't know as send a message from my backend proccess to my front to show a message to screen. 但是,我不知道从后端流程向前台发送消息以向屏幕显示消息。

Regards. 问候。

Maybe you don't need to send callback (from backend to front-end). 也许您不需要发送回调(从后端到前端)。 Maybe you should make the front-end poll to see when these results are ready at the back-end side. 也许您应该进行前端轮询,以查看何时在后端准备好这些结果。 Maybe through some JS/Ajax code which keeps polling on the background and once the results are ready, pulls them and displays them in the designated area of the page. 也许通过一些JS / Ajax代码在后台进行轮询,一旦结果准备好,就将其拉出并显示在页面的指定区域中。 I assume your front-end is a web page. 我假设您的前端是一个网页。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM