Ajax 和 rails 中的 Sidekick (Active Job) 有什么区别?
What is the difference between Ajax and Sidekick (Active Job) in rails?
我想知道 Ajax 和 Sidekick (Active job) 的区别。
这些看起来都是一样的后台进程系统。
除了都是 asyncrony.
的例子外,它们几乎没有任何共同点
AJAX is an ancient term from the dark days of the browsers wars (early 2000's) that stands for Asyncronous Javascript and XML (which was thought would become the defacto interchange format for the web back then) and currently is used to refer to the XMLHttpRequest api 由浏览器提供。
异步意味着您可以将请求从客户端发送到服务器而无需重新加载页面。
Sidekick 是一个 Ruby gem 用于在服务器[=26] 上排队和 运行 宁后台任务 =] 这让您可以执行作业,而无需让 Web 线程(和用户)在发送响应之前等待它完成。
客户端等价物实际上更像是 Web Workers api,它允许您在浏览器的后台 运行 脚本。
我想知道 Ajax 和 Sidekick (Active job) 的区别。 这些看起来都是一样的后台进程系统。
除了都是 asyncrony.
的例子外,它们几乎没有任何共同点AJAX is an ancient term from the dark days of the browsers wars (early 2000's) that stands for Asyncronous Javascript and XML (which was thought would become the defacto interchange format for the web back then) and currently is used to refer to the XMLHttpRequest api 由浏览器提供。
异步意味着您可以将请求从客户端发送到服务器而无需重新加载页面。
Sidekick 是一个 Ruby gem 用于在服务器[=26] 上排队和 运行 宁后台任务 =] 这让您可以执行作业,而无需让 Web 线程(和用户)在发送响应之前等待它完成。
客户端等价物实际上更像是 Web Workers api,它允许您在浏览器的后台 运行 脚本。