Welcome Guest, Not a member yet? Register   Sign In
Codeigniter Iron.io Library - IronMQ/IronWorker/IronCache
#1

[eluser]Unknown[/eluser]
Created a library for utilizing the Iron.io APIs. If you don't know what Iron.io is go to the website and check it out. They have some amazing products for scaling apps in the cloud. Sign up for a free account and integrate it with almost any project.

This works with all of their products:
- IronMQ(Message Queue)
- IronWorker(Workers to offload processing of images and anything else you can think of)
- IronCache(Elastic and durable cache, it works like memcached on steroids)

Available on github at https://github.com/jrutheiser/Codeigniter-Iron.io


If anyone is interested in helping work on it please let me know.
#2

[eluser]Unknown[/eluser]
Hi,

I have tested iron_mq_php on separate php file and it works. Post/Get message are working fine.

but when installed your iron CI library i keep getting this error

Code:
Fatal error: Uncaught exception 'Http_Exception' with message 'http error: 0 | Empty reply from server' in C:\xampp\htdocs\rcdev\application\libraries\Iron_io\IronCore.class.php:260 Stack trace: #0 C:\xampp\htdocs\rcdev\application\libraries\Iron_io\IronCore.class.php(233): IronCore->reportHttpError(0, 'Empty reply fro...') #1 C:\xampp\htdocs\rcdev\application\libraries\Iron_io\IronCore.class.php(226): IronCore->callWithRetries() #2 C:\xampp\htdocs\rcdev\application\libraries\Iron_io\IronMQ.class.php(300): IronCore->apiCall('GET', 'projects/51f13b...', Array) #3 C:\xampp\htdocs\rcdev\application\libraries\Iron_io\IronMQ.class.php(317): IronMQ->getMessages('test_queue', 1, 60) #4 C:\xampp\htdocs\rcdev\application\controllers\irontest.php(19): IronMQ->getMessage('test_queue') #5 [internal function]: Irontest->index() #6 C:\xampp\htdocs\rcdev\system\core\CodeIgniter.php(359): call_user_func_array(Array, Array) #7 C:\xampp\htdocs\rcdev\index.php(202): require_once('C:\xampp\htdocs...') #8 {main} thrown in C:\xampp\htdocs\rcdev\application\libraries\Iron_io\IronCore.class.php on line 260

Here is my controller

Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Irontest extends CI_Controller {      
  
  function __construct()
{
     parent::__construct();
     $this->load->library('domain_shift');
            $this->load->library('iron_io');
    
}

        public function index()  
            $this->iron_io->queue->getMessage("test_queue");
        }
        public function set(){
            $this->iron_io->queue->postMessage("test_queue",'22');
        }
        public function get(){
            $this->iron_io->queue->getMessage("test_queue");
        }
}


have any idea how to solve this ?
#3

[eluser]Unknown[/eluser]
Hey Agarhy, I'm sorry for the delay!

I'm guessing from that error output that you're running this on Windows. In order to recreate this bug could you please tell me what your config file looks like(minus the sensitive details)? and what version of PHP you're running?

Thanks,
Jonathan
#4

[eluser]jmadsen[/eluser]
Very nicely done - only tested pushing to queue from my local, but works like a charm!




Theme © iAndrew 2016 - Forum software by © MyBB