首页 \ 问答 \ Apache Kafka对Apache Storm(Apache Kafka vs Apache Storm)

Apache Kafka对Apache Storm(Apache Kafka vs Apache Storm)

Apache Kafka:分布式消息系统
Apache Storm:实时消息处理

在实时数据管道中如何使用这两种技术来处理事件数据?

在实时数据管道方面,似乎在我看来,工作是一样的。 我们如何在数据管道上使用这两种技术?


Apache Kafka: Distributed messaging system
Apache Storm: Real Time Message Processing

How we can use both technologies in a real-time data pipeline for processing event data?

In terms of real time data pipeline both seems to me do the job identical. How can we use both the technologies on a data pipeline?


原文:https://stackoverflow.com/questions/21808529
更新时间:2024-02-27 14:02

最满意答案

如果你的控制器中使用了两个参数作为你的index()函数,你需要在你的URL中使用这两个参数。 否则,您应该编辑您的控制器以使用一个参数。

但是你按照错误的顺序来做东西,这是正确的方法:

$route['(:any)'] = 'Template/index/$1';

它不适用于您当前的控制器。 但是这会起作用:

$route['(:any)/(:num)'] = 'Template/index/$1/$2';

有了这个网址: https//www.mywebsite.fr/Albumaker/10212276203435022


If you use two parameters in your controller for your index() function, you need those two params in your URL. Otherwise, you should edit your controller to use one parameter.

But you're doing stuff in the wrong order, this is the right way:

$route['(:any)'] = 'Template/index/$1';

It will not work with your current controller. But this will work:

$route['(:any)/(:num)'] = 'Template/index/$1/$2';

With this url: https://www.mywebsite.fr/Albumaker/10212276203435022

相关问答

更多
  • 如果你的控制器中使用了两个参数作为你的index()函数,你需要在你的URL中使用这两个参数。 否则,您应该编辑您的控制器以使用一个参数。 但是你按照错误的顺序来做东西,这是正确的方法: $route['(:any)'] = 'Template/index/$1'; 它不适用于您当前的控制器。 但是这会起作用: $route['(:any)/(:num)'] = 'Template/index/$1/$2'; 有了这个网址: https : //www.mywebsite.fr/Albumaker/10 ...
  • 是的,车辆因事故而采取其他路线,以避免以下交通堵塞。 这就是在这里使用IVC向其他车辆通报事故的重点。 关于重新路由,请参阅TraCIDemo11p.cc ( l.48 )和TraCICommandInterface.cc ( l.138 )。 编辑:有关详细信息,请参阅此帖子 。 Yes, vehicles take other routes due to the accident to avoid the following traffic jam. That is the whole point of ...
  • 首先检查app.yaml 。 app.yaml决定了每种请求的gogole app引擎响应。 https://developers.google.com/appengine/docs/python/config/appconfig 基本上,谷歌应用程序引擎有两种方式来响应请求。 通过静态文件进行响应https://developers.google.com/appengine/docs/python/config/appconfig#Static_File_Handlers 静态文件是为给定URL直接提供给 ...
  • 我需要“用户”可以是动态的。 我已经创建了一个路线,它对我有用,你可以检查这是否是最好的方法。 $route['api/v1/(:any)/([az 0-9~%.:@_\-]+)/(:any)'] = "$1/index/$2/$3"; $route['api/v1/(:any)/(:num)'] = "$1/index/$2"; $route['api/v1/(:any)'] = "$1/index"; 谢谢 I need the "users" can be dynamic. I already cre ...
  • 没关系,它已经解决了。 我整理了yaml文件,现在一切正常。 application: blogapp version: 1 runtime: python27 api_version: 1 threadsafe: true handlers: - url: /static static_dir: static - url: (/.*)* script: base.application libraries: - name: jinja2 version: latest Nevermin ...
  • webapp2不允许这样的路由。 我认为最合理的解决方案是为webapp2.Router编写自定义调度webapp2.Router 。 可以像这样设置自定义调度程序: app = WSGIApplication(...) app.router.set_dispatcher(custom_dispatcher) 这是一个未经测试的调度程序草图 ,代码基于webapp2.Router.default_dispatcher : from webapp2 import import_string def cus ...
  • Codeigniter中的路由非常棒! 您的代码差不多完成了,只需要在配置/路由文件中进行一些修改。 按照以下代码...... $route['countrymap/(:any)'] = 'countrymap/index/$1'; 有关更多信息,请访问Codeigniter官方路由页面 。 谢谢! Routing in Codeigniter is really pretty awesome! Your code is almost done,just need some modification in ...
  • 优先级在这里很重要,您的路由将从上到下进行解析,并找到它找到的第一个匹配,适用于路由, 所以,让我们说你的路线文件看起来像, $route['login/(:any)'] = "login/index/$1"; $route['profile/(:any)'] = "profile/index/$1"; $route['(:any)'] = "controller/index/$1"; 所以,这里的第三条规则将被解析,因为它不是login/(:any)而不是profile/(:any) 。 要在控制 ...
  • 我认为 app = webapp2.WSGIApplication([(r'/case/(\w+)', ViewCase)], debug=True) 应该足够了。 请注意, ^表示字符串的开头,在/case/之后显然不会发生。 我认为这就是你的正则表达式不起作用的原因。 I think app = webapp2.WSGIApplication([(r'/case/(\w+)', ViewCase)], ...
  • 这是一个迟到的答案,但我自己遇到了这个问题,但事实证明Dan的解决方案与ngView指令上的ngAnimate类冲突,并且显示了视图但是将立即应用ng-leave动画并隐藏视图用他的动态路由打开。 我在这里找到了完美的解决方案,它在1.1.5 +中可用 在$routeProvider , templateUrl值可以是一个函数,并且传递路由参数: app.config(function ($routeProvider) { $routeProvider .when('/:page', { ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。