<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>Gearman | Muharrem Tığdemir</title>
	<atom:link href="/tag/gearman/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>Carpe Diem!!</description>
	<lastBuildDate>Thu, 17 Jul 2014 10:22:23 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.2.2</generator>
<site xmlns="com-wordpress:feed-additions:1">120145533</site>	<item>
		<title>Laravel4 Queue with Gearman</title>
		<link>/laravel4-queue-gearman/</link>
					<comments>/laravel4-queue-gearman/#respond</comments>
		
		<dc:creator><![CDATA[Muharrem Tığdemir]]></dc:creator>
		<pubDate>Tue, 08 Jul 2014 12:29:16 +0000</pubDate>
				<category><![CDATA[Gearman]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[laravel]]></category>
		<category><![CDATA[laravel 4]]></category>
		<category><![CDATA[laravel gearman integration]]></category>
		<category><![CDATA[laravel queue]]></category>
		<category><![CDATA[queue]]></category>
		<guid isPermaLink="false">https://muharremtigdemir.com/?p=471</guid>

					<description><![CDATA[<p>Hi all , this article about Laravel4 Queue component. Before,  start reading this article please check these pages and get basic knowledge about it. Laravel 4.2 Queue Documentation What&#8217;s main idea of Queue system and why do we need this? What is Gearman Job Server? If you are interested in Laravel 4 Queue component , [&#8230;]</p>
<p>The post <a href="/laravel4-queue-gearman/">Laravel4 Queue with Gearman</a> first appeared on <a href="">Muharrem Tığdemir</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Hi all , this article about Laravel4 Queue component.</p>
<p>Before,  start reading this article please check these pages and get basic knowledge about it.</p>
<ol>
<li><a title="Laravel 4 Queues" href="http://laravel.com/docs/queues">Laravel 4.2 Queue Documentation</a></li>
<li><a href="http://www.grandlogic.com/content/html_docs/products-jobserver.shtml">What&#8217;s main idea of Queue system and why do we need this?</a></li>
<li><a title="Gearman" href="http://gearman.org/">What is Gearman Job Server?</a></li>
</ol>
<p style="padding-left: 30px;">If you are interested in Laravel 4 Queue component , you&#8217;ll have good options for Job Server like;</p>
<ul>
<li><a title="Redis" href="http://redis.io/" target="_blank">Redis</a></li>
<li><a title="AWS" href="http://aws.amazon.com/" target="_blank">Amazon</a></li>
<li><a href="http://kr.github.io/beanstalkd/" target="_blank"><span style="color: #454545;">Beanstalkd</span></a></li>
<li><a href="http://www.iron.io/mq" target="_blank"><span style="color: #454545;">IronMQ</span></a></li>
</ul>
<p>These are supported in Laravel Default Framework..</p>
<h3>What should I pay attention while choosing  Job Server Platform?</h3>
<p><span id="more-471"></span></p>
<ul>
<li> Most important thing is your volume. How many job will handle with this server ?</li>
<li> How much time is going to be completed for standart one task?</li>
<li>Do you need cross-platform integration in your application ? Like Php based system and Java Based Compression Tool etc..</li>
</ul>
<p>If you have only hardware(not enough CPU , RAM) problems  , I suggest you to buy a service from Amazon or IronMQ.</p>
<p>or If you just need quickness and velocity for visitors. You&#8217;ve to deal with local solutions. Redis , IronMQ  etc..</p>
<p>As you know , Sometimes its not possible solve everyting with one language and you&#8217;d need Hybrid solutions. Then we are talking about Gearman <img src="https://s.w.org/images/core/emoji/14.0.0/72x72/1f600.png" alt="😀" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>Just select your language..</p>
<h3>Gearman Support Famous Languages</h3>
<p>Please <a title="Gearman Documentation" href="http://gearman.org/documentation/" target="_blank">check this site</a> for documentation and more indormation</p>
<ul>
<li>PHP</li>
<li>Mysql</li>
<li>Java</li>
<li>Go</li>
<li>C#</li>
<li>Node.js</li>
<li>&#8230;</li>
</ul>
<p>It&#8217;s not complicated to develop Hybrid Solutions with Gearman.</p>
<h3>Setup Gearman into Server</h3>
<ul>
<li>
<pre class="lang:default decode:true" title="Setup Gearman Ubuntu">apt-get install gearman-job-server

gearmand -d</pre>
<p>For other Operating Systems  <a title="Gearman Install" href="http://gearman.org/getting-started/">check this page</a>.</li>
</ul>
<h3>Gearman Integration with Laravel Queue</h3>
<p>This bundle is very easy to integrate Gearman with Laravel : <a href="https://github.com/pafelin/laravel-gearman">Github Link</a></p>
<p>Thanks for useful github project.</p>
<p>If you succesfully added Gearman bundle into your project , Now you can check queue list by laravel command line.</p>
<ul>
<li>
<pre class="lang:default decode:true">php artisan queue:listen</pre>
</li>
</ul>
<h3>Do not forget to Setup Gearman Monitoring UI</h3>
<ul>
<li>
<pre style="color: #333333;"><code style="color: #333333;">git clone git://github.com/gaspaio/gearmanui.git gearman-ui</code></pre>
</li>
<li>
<pre style="color: #333333;"><code style="color: #333333;">cd gearman-ui
composer install</code></pre>
</li>
<li>
<pre style="color: #333333;"><code style="color: #333333;"> cp app/config/gearmanui.yml.dist app/config/gearmanui.yml</code></pre>
</li>
</ul>
<p><a title="Gearman UI" href="http://gaspaio.github.io/gearmanui/">Project</a> :  This opensource project definetily monitoring basic info about Gearman Server. That&#8217;s exactly what I need. You can find more specific monitors if you need it.</p>
<h3>What about Laravel Queue Trick</h3>
<p>I love default routing for Fail or Exceptions. It&#8217;s very necesary in real-time actions.</p>
<ul>
<li>
<pre class="lang:default decode:true">php artisan queue:failed-table
php artisan migrate
</pre>
</li>
</ul>
<p>Let say you are using Local Solution as a Job Server and it Crashed. We&#8217;ve to handle this kind of situations. Laravel doing this for you just add the above part. Laravel save failed jobs into  Mysql-&gt;&#8217;failed-table&#8217; That&#8217;s it..</p>
<ul>
<li>
<pre class="lang:default decode:true">Queue::failing(function($connection, $job, $data)
{
    //OMG My Server Crashed or Something wrong send me an email right now!!!
});</pre>
<p>With this routing we&#8217;ll be able to in touch our Job Server.</li>
</ul>
<p>Muharrem Tığdemir</p><p>The post <a href="/laravel4-queue-gearman/">Laravel4 Queue with Gearman</a> first appeared on <a href="">Muharrem Tığdemir</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>/laravel4-queue-gearman/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">471</post-id>	</item>
		<item>
		<title>Gearman Nedir?</title>
		<link>/gearman-nedir/</link>
					<comments>/gearman-nedir/#respond</comments>
		
		<dc:creator><![CDATA[Muharrem Tığdemir]]></dc:creator>
		<pubDate>Thu, 09 Jan 2014 09:05:02 +0000</pubDate>
				<category><![CDATA[Gearman]]></category>
		<category><![CDATA[German-Java]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[job]]></category>
		<category><![CDATA[Job Server]]></category>
		<category><![CDATA[server]]></category>
		<guid isPermaLink="false">https://muharremtigdemir.com/?p=223</guid>

					<description><![CDATA[<p>Merhaba Arkadaşlar , Gearman hakkında türkçe kaynak bulmak biraz sıkıntı , araştırdığım ve kendim kullandığım kadarıyla &#8220;Job Server&#8221; kullanımı hakkında bilgi vereceğim. Gearman&#8217;ı http://gearman.org/ bu linkten inceleyebilirsiniz. Gearman&#8217;ı kimler kullanıyor? Craig’s List, Tumblr, Yelp, Etsy gibi trafiği büyük siteler tarafından kullanılmaktadır. Neden Gearman&#8217;a ihtiyaç duyuluyor? Serverların yükünü azaltmak : Örneğin Craig&#8217;s List , bir günde gönderilen email [&#8230;]</p>
<p>The post <a href="/gearman-nedir/">Gearman Nedir?</a> first appeared on <a href="">Muharrem Tığdemir</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Merhaba Arkadaşlar ,</p>
<p>Gearman hakkında türkçe kaynak bulmak biraz sıkıntı , araştırdığım ve kendim kullandığım kadarıyla &#8220;Job Server&#8221; kullanımı hakkında bilgi vereceğim. Gearman&#8217;ı <a href="http://gearman.org/">http://gearman.org/</a> bu linkten inceleyebilirsiniz.</p>
<p><strong>Gearman&#8217;ı kimler kullanıyor?</strong></p>
<p style="padding-left: 30px;">Craig’s List, Tumblr, Yelp, Etsy gibi trafiği büyük siteler tarafından kullanılmaktadır.</p>
<p><strong>Neden Gearman&#8217;a ihtiyaç duyuluyor?</strong></p>
<ul>
<li>Serverların yükünü azaltmak : Örneğin Craig&#8217;s List , bir günde gönderilen email sayısını net bir rakam veremiyorum ama yüzbinlerce , Tumblr saniyede yapılan insert ve select sayıları , CDN serverlarda on the fly Image Process işlemleri evet bu işler için gerçekten biçilmiş kaftan Gearman Background Job Server.</li>
</ul>
<p><span id="more-223"></span></p>
<p><strong>Gearman&#8217;ın avantajları ?</strong></p>
<ul>
<li>En büyük avantajı bence plaform bağımsızlığı en basit seviyede TCP Socket protokolü ile çalışan gearman&#8217;da örneğin Java&#8217;dan Image Process yapan bir Servlet oluşturup ona sadece bu işi yaptırarak kendi server&#8217;ınızı iş yükünden kurtarabilirsin üstelik kullandığınız server Java olmak zorunda değil PHP , Perl , MySQL bile olabilir.</li>
<li>Asenkron ve Senkron iş yükleyebilirsiniz veya genel bir iş bloğu tanımlayarak sıralı işlemleri tetikleyebilirsiniz.</li>
<li>Açık Kaynak Kodlu(Open Source BSD) bir projedir.</li>
<li>Genişletilebilir.</li>
<li>Server/Side çalışması ve C/C++ ile optimize edilmiş olması hız konusunda çok gelişmiştir.</li>
</ul>
<p><a href="http://gearman.org/"><img decoding="async" loading="lazy" class="aligncenter" src="http://gearman.org/img/stack.png" alt="" width="479" height="302" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>Gearman Nasıl Çalışıyor ?</strong></p>
<p><img decoding="async" loading="lazy" class="aligncenter" src="http://gearman.org/img/flow.png" alt="" width="478" height="143" /></p>
<p style="padding-left: 30px;">Gearman Job Server&#8217;a kayıt ettiğiniz işçiler sizin için işi yapıyor ve cevaplıyor. Örneğin bir yazıyı tersten yazdırmak. Çalışma şekli çok temel bir mantığa dayanıyor. Benim bir işim var ADI: &#8220;Tersten Yazdır&#8221;  Verim : &#8220;Muharrem Tığdemir&#8221;.  Yukarıdaki şekilde göreceğiniz gibi Worker sizin için veriyi ters çevirip geri gönderiyor hem de asenkron. Yani Gearman ile PHP derlendikten sonra Notification işlemleri yapmak mümkün.</p>
<p style="padding-left: 30px;">Yazıma Gearman-Java Kullanımı ile devam edeceğim..</p>
<p style="padding-left: 30px;">Muharrem Tığdemir</p>
<p>&nbsp;</p><p>The post <a href="/gearman-nedir/">Gearman Nedir?</a> first appeared on <a href="">Muharrem Tığdemir</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>/gearman-nedir/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">223</post-id>	</item>
	</channel>
</rss>