{"id":21144,"date":"2014-01-30T10:00:07","date_gmt":"2014-01-30T08:00:07","guid":{"rendered":"http:\/\/www.javacodegeeks.com\/?p=21144"},"modified":"2014-01-29T08:22:55","modified_gmt":"2014-01-29T06:22:55","slug":"simple-message-queue-using-redis","status":"publish","type":"post","link":"https:\/\/www.javacodegeeks.com\/2014\/01\/simple-message-queue-using-redis.html","title":{"rendered":"Simple Message Queue using Redis"},"content":{"rendered":"<p>In this posts we will use Redis as a simple message queue, using list commands.<\/p>\n<p>Let\u2019s say we have an application that allows the users to upload a photo. Then in the application we display the photo in different sizes like Thumb, Medium and Large.<\/p>\n<p>In a first implementation we could have the task of processing the uploaded image in the same request. As it is an expensive task, it would make our requests slow.<\/p>\n<p>A possible solution for this it to make this processing asynchronous by using a Message Queue(MQ), there are a lot of well known MQs like ActiveMQ, RabbitMQ, IBM MQ and other. In the examples below we will be using Redis as a message queue using the LIST structure.<\/p>\n<p>The idea is to have a LIST where the producer will put the messages to be processed and some consumers that will watch the LIST to process the messages sent.<\/p>\n<p>Basically, the producers will add the messages into the end of the list with \u201c<em>RPUSH queue message<\/em>\u201d and the consumers will read the messages in the beginning of the list with \u201c<em>LPOP queue<\/em>\u201d configuring a FIFO processing.<\/p>\n<p>The client will always be looking for a new message, for this purpose we will use the BLPOP command that is a blocking version of the LPOP command. Basically there will be a while loop calling BLPOP to get a new message to process.<\/p>\n<p>Considering the image upload example, let\u2019s say we have a class ImageUploader that is responsible for uploading the image to the server, it will add a new message in the queue, indicating there is an image to be processed, a message could be a JSON string like this:<\/p>\n<pre class=\" brush:bash\">{\u201cimagePath\u201d:\u201d\/path\/to\/image\u201d, \u201cuser\u201d:\u201duserid\u201d}<\/pre>\n<p>The ImageUploder class could be like this:<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<pre class=\" brush:java\">public class ImageUploader {\r\n\r\n  public void uploadImage(HttpServletRequest request){\r\n\r\n    String imagePath = saveImage(request);\r\n    String jsonPayload = createJsonPayload(request, imagePath);\r\n    jedis.rpush(\"queue\", jsonPayload);\r\n    \/\/... keep with the processing\r\n  }\r\n\r\n  \/\/.... other methods in the class\r\n}<\/pre>\n<p>It is just an example on how the producer would work. In this case we have decoupled the image processing from the ImageUploader class. We just create a new message in the queue, so the consumers would process them.<\/p>\n<p>The message consumer could be something like this:<\/p>\n<pre class=\" brush:java\">package br.com.xicojunior.redistest;\r\n\r\nimport java.util.List;\r\n\r\nimport redis.clients.jedis.Jedis;\r\n\r\npublic class MessageConsumer \r\n{\r\n    public static void main( String[] args )\r\n    {\r\n        Jedis jedis = new Jedis(\"localhost\");   \r\n        List&lt;String&gt; messages = null;\r\n        while(true){\r\n          System.out.println(\"Waiting for a message in the queue\");\r\n          messages = jedis.blpop(0,\"queue\");\r\n          System.out.println(\"Got the message\");\r\n          System.out.println(\"KEY:\" + messages.get(0) + \" VALUE:\" + messages.get(1));\r\n          String payload = messages.get(1);\r\n          \/\/Do some processing with the payload\r\n          System.out.println(\"Message received:\" + payload);\r\n        }\r\n\r\n    }\r\n}<\/pre>\n<p>This consumer code could be running in a different process or even a different machine. This consumers code is runnable we can compile it and run it using eclipse or java command.<\/p>\n<p>For this code we used the <em>jedis.blpop<\/em> method, it returns a List with 2 Strings, (0) \u2013 The key, (1) \u2013 The value that was returned. The method also receives an integer, it indicates the timeout. We passed 0 indicating there will be no timeout.<\/p>\n<p>When we run this code and there is no value in the list, in the console we will see just the message<\/p>\n<pre class=\" brush:java\">\"Waiting for a message in the queue\".<\/pre>\n<p>Then if a client adds a element in the list \u201cqueue\u201d our consumer class will get its value. We can simulate a test by using the redis-cli or even another class that will add elements in the queue like the one below:<\/p>\n<pre class=\" brush:java\">package br.com.xicojunior.redistest;\r\n\r\nimport redis.clients.jedis.Jedis;\r\n\r\npublic class MessageProducer {\r\n\r\n  public static void main(String[] args) {\r\n    Jedis jedis = new Jedis(\"localhost\");\r\n\r\n    jedis.rpush(\"queue\", \"Value 1\");\r\n    jedis.rpush(\"queue\", \"Value 2\");\r\n    jedis.rpush(\"queue\", \"Value 3\");\r\n\r\n  }\r\n\r\n}<\/pre>\n<p>If we run the MessageProducer class after the MessageConsumer class is already running we will see this output in the console:<\/p>\n<pre class=\" brush:java\">Waiting for a message in the queue\r\nGot the message\r\nKEY:queue VALUE:Value 1\r\nMessage received:Value 1\r\nWaiting for a message in the queue\r\nGot the message\r\nKEY:queue VALUE:Value 2\r\nMessage received:Value 2\r\nWaiting for a message in the queue\r\nGot the message\r\nKEY:queue VALUE:Value 3\r\nMessage received:Value 3\r\nWaiting for a message in the queue<\/pre>\n<p>So, message queue would be another possible use case for Redis. There are some queues built on top of redis like <a href=\"http:\/\/restmq.com\/\" target=\"_blank\">RestMQ<\/a>, <a href=\"http:\/\/resquework.org\/\" target=\"_blank\">Resque<\/a> \u2013 a Job Queue and other.<br \/>\n&nbsp;<\/p>\n<div style=\"border: 1px solid #D8D8D8; background: #FAFAFA; width: 100%; padding-left: 5px;\"><b><i>Reference: <\/i><\/b><a href=\"http:\/\/xicojunior.wordpress.com\/2014\/01\/23\/simple-message-queue-using-redis\/\">Simple Message Queue using Redis<\/a> from our <a href=\"http:\/\/www.javacodegeeks.com\/jcg\">JCG partner<\/a> Francisco Ribeiro Junior at the <a href=\"http:\/\/xicojunior.wordpress.com\/\">XICO JUNIOR&#8217;S WEBLOG<\/a> blog.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this posts we will use Redis as a simple message queue, using list commands. Let\u2019s say we have an application that allows the users to upload a photo. Then in the application we display the photo in different sizes like Thumb, Medium and Large. In a first implementation we could have the task of &hellip;<\/p>\n","protected":false},"author":504,"featured_media":223,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[117],"class_list":["post-21144","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-enterprise-java","tag-redis"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Can you Learn and Improve without Agile Retrospectives? Of course you can...<\/title>\n<meta name=\"description\" content=\"In this posts we will use Redis as a simple message queue, using list commands. Let\u2019s say we have an application that allows the users to upload a photo.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.javacodegeeks.com\/2014\/01\/simple-message-queue-using-redis.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Can you Learn and Improve without Agile Retrospectives? Of course you can...\" \/>\n<meta property=\"og:description\" content=\"In this posts we will use Redis as a simple message queue, using list commands. Let\u2019s say we have an application that allows the users to upload a photo.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.javacodegeeks.com\/2014\/01\/simple-message-queue-using-redis.html\" \/>\n<meta property=\"og:site_name\" content=\"Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2014-01-30T08:00:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/redis-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Francisco Ribeiro Junior\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@http:\/\/twitter.com\/fjunior87\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Francisco Ribeiro Junior\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/01\\\/simple-message-queue-using-redis.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/01\\\/simple-message-queue-using-redis.html\"},\"author\":{\"name\":\"Francisco Ribeiro Junior\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/4bfab535e166a1d3c2dc3f199731682c\"},\"headline\":\"Simple Message Queue using Redis\",\"datePublished\":\"2014-01-30T08:00:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/01\\\/simple-message-queue-using-redis.html\"},\"wordCount\":550,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/01\\\/simple-message-queue-using-redis.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/redis-logo.jpg\",\"keywords\":[\"Redis\"],\"articleSection\":[\"Enterprise Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/01\\\/simple-message-queue-using-redis.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/01\\\/simple-message-queue-using-redis.html\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/01\\\/simple-message-queue-using-redis.html\",\"name\":\"Can you Learn and Improve without Agile Retrospectives? Of course you can...\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/01\\\/simple-message-queue-using-redis.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/01\\\/simple-message-queue-using-redis.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/redis-logo.jpg\",\"datePublished\":\"2014-01-30T08:00:07+00:00\",\"description\":\"In this posts we will use Redis as a simple message queue, using list commands. Let\u2019s say we have an application that allows the users to upload a photo.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/01\\\/simple-message-queue-using-redis.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/01\\\/simple-message-queue-using-redis.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/01\\\/simple-message-queue-using-redis.html#primaryimage\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/redis-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/redis-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/01\\\/simple-message-queue-using-redis.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Enterprise Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\\\/enterprise-java\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Simple Message Queue using Redis\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Developers Resource Center\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.javacodegeeks.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/javacodegeeks\",\"https:\\\/\\\/x.com\\\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/4bfab535e166a1d3c2dc3f199731682c\",\"name\":\"Francisco Ribeiro Junior\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/125ace9741774794eb230010f4a4419f2eb9bbee3b33c041e0c7f445e9663bfc?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/125ace9741774794eb230010f4a4419f2eb9bbee3b33c041e0c7f445e9663bfc?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/125ace9741774794eb230010f4a4419f2eb9bbee3b33c041e0c7f445e9663bfc?s=96&d=mm&r=g\",\"caption\":\"Francisco Ribeiro Junior\"},\"description\":\"Francisco is a senior software engineer working in the telecom\\\/banking domain focused on Web Content Management. He has been technical lead on many projects for different Brazilian and worldwide clients.\",\"sameAs\":[\"http:\\\/\\\/xicojunior.wordpress.com\\\/\",\"http:\\\/\\\/br.linkedin.com\\\/in\\\/fribeiro\\\/\",\"https:\\\/\\\/x.com\\\/http:\\\/\\\/twitter.com\\\/fjunior87\"],\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/author\\\/francisco-ribeiro-junior\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Can you Learn and Improve without Agile Retrospectives? Of course you can...","description":"In this posts we will use Redis as a simple message queue, using list commands. Let\u2019s say we have an application that allows the users to upload a photo.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.javacodegeeks.com\/2014\/01\/simple-message-queue-using-redis.html","og_locale":"en_US","og_type":"article","og_title":"Can you Learn and Improve without Agile Retrospectives? Of course you can...","og_description":"In this posts we will use Redis as a simple message queue, using list commands. Let\u2019s say we have an application that allows the users to upload a photo.","og_url":"https:\/\/www.javacodegeeks.com\/2014\/01\/simple-message-queue-using-redis.html","og_site_name":"Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2014-01-30T08:00:07+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/redis-logo.jpg","type":"image\/jpeg"}],"author":"Francisco Ribeiro Junior","twitter_card":"summary_large_image","twitter_creator":"@http:\/\/twitter.com\/fjunior87","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Francisco Ribeiro Junior","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.javacodegeeks.com\/2014\/01\/simple-message-queue-using-redis.html#article","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/2014\/01\/simple-message-queue-using-redis.html"},"author":{"name":"Francisco Ribeiro Junior","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/4bfab535e166a1d3c2dc3f199731682c"},"headline":"Simple Message Queue using Redis","datePublished":"2014-01-30T08:00:07+00:00","mainEntityOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2014\/01\/simple-message-queue-using-redis.html"},"wordCount":550,"commentCount":0,"publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2014\/01\/simple-message-queue-using-redis.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/redis-logo.jpg","keywords":["Redis"],"articleSection":["Enterprise Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.javacodegeeks.com\/2014\/01\/simple-message-queue-using-redis.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.javacodegeeks.com\/2014\/01\/simple-message-queue-using-redis.html","url":"https:\/\/www.javacodegeeks.com\/2014\/01\/simple-message-queue-using-redis.html","name":"Can you Learn and Improve without Agile Retrospectives? Of course you can...","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2014\/01\/simple-message-queue-using-redis.html#primaryimage"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2014\/01\/simple-message-queue-using-redis.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/redis-logo.jpg","datePublished":"2014-01-30T08:00:07+00:00","description":"In this posts we will use Redis as a simple message queue, using list commands. Let\u2019s say we have an application that allows the users to upload a photo.","breadcrumb":{"@id":"https:\/\/www.javacodegeeks.com\/2014\/01\/simple-message-queue-using-redis.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.javacodegeeks.com\/2014\/01\/simple-message-queue-using-redis.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/2014\/01\/simple-message-queue-using-redis.html#primaryimage","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/redis-logo.jpg","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/redis-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.javacodegeeks.com\/2014\/01\/simple-message-queue-using-redis.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Java","item":"https:\/\/www.javacodegeeks.com\/category\/java"},{"@type":"ListItem","position":3,"name":"Enterprise Java","item":"https:\/\/www.javacodegeeks.com\/category\/java\/enterprise-java"},{"@type":"ListItem","position":4,"name":"Simple Message Queue using Redis"}]},{"@type":"WebSite","@id":"https:\/\/www.javacodegeeks.com\/#website","url":"https:\/\/www.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Developers Resource Center","publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/4bfab535e166a1d3c2dc3f199731682c","name":"Francisco Ribeiro Junior","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/125ace9741774794eb230010f4a4419f2eb9bbee3b33c041e0c7f445e9663bfc?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/125ace9741774794eb230010f4a4419f2eb9bbee3b33c041e0c7f445e9663bfc?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/125ace9741774794eb230010f4a4419f2eb9bbee3b33c041e0c7f445e9663bfc?s=96&d=mm&r=g","caption":"Francisco Ribeiro Junior"},"description":"Francisco is a senior software engineer working in the telecom\/banking domain focused on Web Content Management. He has been technical lead on many projects for different Brazilian and worldwide clients.","sameAs":["http:\/\/xicojunior.wordpress.com\/","http:\/\/br.linkedin.com\/in\/fribeiro\/","https:\/\/x.com\/http:\/\/twitter.com\/fjunior87"],"url":"https:\/\/www.javacodegeeks.com\/author\/francisco-ribeiro-junior"}]}},"_links":{"self":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/21144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/users\/504"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=21144"}],"version-history":[{"count":0,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/21144\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media\/223"}],"wp:attachment":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=21144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=21144"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=21144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}