{"id":24634,"date":"2019-06-28T12:15:21","date_gmt":"2019-06-28T09:15:21","guid":{"rendered":"https:\/\/www.webcodegeeks.com\/?p=24634"},"modified":"2019-06-28T10:24:36","modified_gmt":"2019-06-28T07:24:36","slug":"syncem-thread-safe-decorators-ruby","status":"publish","type":"post","link":"https:\/\/www.webcodegeeks.com\/ruby\/syncem-thread-safe-decorators-ruby\/","title":{"rendered":"SyncEm: Thread-Safe Decorators in Ruby"},"content":{"rendered":"\n<p>I wrote some time ago about thread-safety in OOP and how it can be achieved with <a href=\"https:\/\/www.javacodegeeks.com\/2017\/01\/synchronized-decorators-replace-thread-safe-classes.html\">decorators<\/a>. It was also said that it\u2019s very important to make sure objects are thread-safe (<a href=\"https:\/\/www.webcodegeeks.com\/ruby\/test-ruby-code-thread-safety\/\">in Ruby<\/a> and <a href=\"https:\/\/www.javacodegeeks.com\/2018\/03\/how-i-test-my-java-classes-for-thread-safety.html\">in Java<\/a>), especially in web apps, which are multi-threaded (well, in most cases anyway). Well, here is <a href=\"https:\/\/github.com\/yegor256\/syncem\">SyncEm<\/a>, a primitive Ruby gem which makes the above possible with a single decorator.<\/p>\n\n\n\n<p>Look at this simple Ruby web app, which increments the internal counter on every web click:<\/p>\n\n\n\n<pre class=\" brush:php\">require 'sinatra'\nclass Front &lt; Sinatra::Base\n  configure do\n    set(:visits, Visits.new)\n  end\n  before '\/*' do\n    settings.visits.increment\n  end\n  get '\/' do\n    \"Your visit is no.#{settings.visits.total}\"\n  end\nend\nFront.run!<\/pre>\n\n\n\n<p>In order to count visits it uses class <code>Visits<\/code>, which may be defined this way (it keeps the counter in a file):<\/p>\n\n\n\n<pre class=\" brush:php\">class Visits\n  def increment\n    idx = IO.read('idx.txt').to_i + 1\n    IO.write('idx.txt', idx.to_s)\n    idx.to_s\n  end\n  def total\n    IO.read('idx.txt').to_i\n  end\nend<\/pre>\n\n\n\n<p>It is not thread-safe. Try to run this app and you will see that, if you make many concurrent HTTP requests to the front page, the counter will not always return consecutive numbers.<\/p>\n\n\n\n<p>To make it thread-safe you can use <a href=\"https:\/\/github.com\/yegor256\/syncem\">SyncEm<\/a>, a small Ruby gem, which I created just a few months ago. Here is how:<\/p>\n\n\n\n<pre class=\" brush:php\">require 'syncem'\nclass Front &lt; Sinatra::Base\n  configure do\n    set(:visits, SyncEm.new(Visits.new))\n  end\n  # Same as above\nend<\/pre>\n\n\n\n<p>Here we just <em>decorate<\/em> the object with a thread-safe decorator, which intercepts all calls to all methods of an object and make them all synchronized with a single encapsulated semaphore:<\/p>\n\n\n\n<pre class=\" brush:php\">SyncEm.new(Visits.new)<\/pre>\n\n\n\n<p>This mechanism will only work in Ruby or similar <a href=\"https:\/\/en.wikipedia.org\/wiki\/Interpreted_language\">interpreted<\/a> languages. I would not be able to do the same in Java or C++. But in Ruby, Python, PHP, JavaScript and many others, similar decorators may be very useful.<\/p>\n\n\n\n<p>I\u2019m using it in <a href=\"https:\/\/github.com\/zold-io\/wts.zold.io\">this web app<\/a>, for example.<\/p>\n\n\n\n<div class=\"attribution\">\n<table>\n<tbody>\n<tr>\n<td>Published on Web Code Geeks with permission by Yegor Bugayenko, partner at our <a href=\"\/\/www.webcodegeeks.com\/join-us\/wcg\/\" target=\"_blank\" rel=\"noopener noreferrer\">WCG program<\/a>. See the original article here: <a href=\"https:\/\/www.yegor256.com\/2019\/06\/26\/syncem.html\" target=\"_blank\" rel=\"noopener noreferrer\">SyncEm: Thread-Safe Decorators in Ruby<\/a>\n<p>&nbsp;<\/p>\n<p>Opinions expressed by Web Code Geeks contributors are their own.<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>I wrote some time ago about thread-safety in OOP and how it can be achieved with decorators. It was also said that it\u2019s very important to make sure objects are thread-safe (in Ruby and in Java), especially in web apps, which are multi-threaded (well, in most cases anyway). Well, here is SyncEm, a primitive Ruby &hellip;<\/p>\n","protected":false},"author":6534,"featured_media":4128,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"class_list":["post-24634","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ruby"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>SyncEm: Thread-Safe Decorators in Ruby - Web Code Geeks - 2026<\/title>\n<meta name=\"description\" content=\"Interested to learn about SyncEm? Check our article explaining how SyncEm, makes Thread-Safe Decorators in Ruby possible with a single decorator.\" \/>\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.webcodegeeks.com\/ruby\/syncem-thread-safe-decorators-ruby\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SyncEm: Thread-Safe Decorators in Ruby - Web Code Geeks - 2026\" \/>\n<meta property=\"og:description\" content=\"Interested to learn about SyncEm? Check our article explaining how SyncEm, makes Thread-Safe Decorators in Ruby possible with a single decorator.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webcodegeeks.com\/ruby\/syncem-thread-safe-decorators-ruby\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webcodegeeks\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/yegor256\" \/>\n<meta property=\"article:published_time\" content=\"2019-06-28T09:15:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/ruby-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=\"Yegor Bugayenko\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@yegor256\" \/>\n<meta name=\"twitter:site\" content=\"@webcodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Yegor Bugayenko\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.webcodegeeks.com\/ruby\/syncem-thread-safe-decorators-ruby\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/ruby\/syncem-thread-safe-decorators-ruby\/\"},\"author\":{\"name\":\"Yegor Bugayenko\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/96538e7abaac9f7a3dce9d5d92e1cb33\"},\"headline\":\"SyncEm: Thread-Safe Decorators in Ruby\",\"datePublished\":\"2019-06-28T09:15:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/ruby\/syncem-thread-safe-decorators-ruby\/\"},\"wordCount\":279,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/ruby\/syncem-thread-safe-decorators-ruby\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/ruby-logo.jpg\",\"articleSection\":[\"Ruby\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.webcodegeeks.com\/ruby\/syncem-thread-safe-decorators-ruby\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.webcodegeeks.com\/ruby\/syncem-thread-safe-decorators-ruby\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/ruby\/syncem-thread-safe-decorators-ruby\/\",\"name\":\"SyncEm: Thread-Safe Decorators in Ruby - Web Code Geeks - 2026\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/ruby\/syncem-thread-safe-decorators-ruby\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/ruby\/syncem-thread-safe-decorators-ruby\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/ruby-logo.jpg\",\"datePublished\":\"2019-06-28T09:15:21+00:00\",\"description\":\"Interested to learn about SyncEm? Check our article explaining how SyncEm, makes Thread-Safe Decorators in Ruby possible with a single decorator.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/ruby\/syncem-thread-safe-decorators-ruby\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.webcodegeeks.com\/ruby\/syncem-thread-safe-decorators-ruby\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/ruby\/syncem-thread-safe-decorators-ruby\/#primaryimage\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/ruby-logo.jpg\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/ruby-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.webcodegeeks.com\/ruby\/syncem-thread-safe-decorators-ruby\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.webcodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ruby\",\"item\":\"https:\/\/www.webcodegeeks.com\/category\/ruby\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"SyncEm: Thread-Safe Decorators in Ruby\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"name\":\"Web Code Geeks\",\"description\":\"Web Developers Resource Center\",\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.webcodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webcodegeeks\",\"https:\/\/x.com\/webcodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/96538e7abaac9f7a3dce9d5d92e1cb33\",\"name\":\"Yegor Bugayenko\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c3696c78da79ebdd9ffa8e87e8832461b7cd59659483373b34da4ae25dfb573a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c3696c78da79ebdd9ffa8e87e8832461b7cd59659483373b34da4ae25dfb573a?s=96&d=mm&r=g\",\"caption\":\"Yegor Bugayenko\"},\"description\":\"Yegor Bugayenko is an Oracle certified Java architect, CEO of Zerocracy, author of Elegant Objects book series about object-oriented programing, lead architect and founder of Cactoos, Takes, Rultor and Jcabi, and a big fan of test automation.\",\"sameAs\":[\"http:\/\/www.yegor256.com\/\",\"https:\/\/www.facebook.com\/yegor256\",\"https:\/\/www.linkedin.com\/in\/yegor256\",\"https:\/\/x.com\/yegor256\"],\"url\":\"https:\/\/www.webcodegeeks.com\/author\/yegor-bugayenko\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SyncEm: Thread-Safe Decorators in Ruby - Web Code Geeks - 2026","description":"Interested to learn about SyncEm? Check our article explaining how SyncEm, makes Thread-Safe Decorators in Ruby possible with a single decorator.","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.webcodegeeks.com\/ruby\/syncem-thread-safe-decorators-ruby\/","og_locale":"en_US","og_type":"article","og_title":"SyncEm: Thread-Safe Decorators in Ruby - Web Code Geeks - 2026","og_description":"Interested to learn about SyncEm? Check our article explaining how SyncEm, makes Thread-Safe Decorators in Ruby possible with a single decorator.","og_url":"https:\/\/www.webcodegeeks.com\/ruby\/syncem-thread-safe-decorators-ruby\/","og_site_name":"Web Code Geeks","article_publisher":"https:\/\/www.facebook.com\/webcodegeeks","article_author":"https:\/\/www.facebook.com\/yegor256","article_published_time":"2019-06-28T09:15:21+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/ruby-logo.jpg","type":"image\/jpeg"}],"author":"Yegor Bugayenko","twitter_card":"summary_large_image","twitter_creator":"@yegor256","twitter_site":"@webcodegeeks","twitter_misc":{"Written by":"Yegor Bugayenko","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webcodegeeks.com\/ruby\/syncem-thread-safe-decorators-ruby\/#article","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/ruby\/syncem-thread-safe-decorators-ruby\/"},"author":{"name":"Yegor Bugayenko","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/96538e7abaac9f7a3dce9d5d92e1cb33"},"headline":"SyncEm: Thread-Safe Decorators in Ruby","datePublished":"2019-06-28T09:15:21+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/ruby\/syncem-thread-safe-decorators-ruby\/"},"wordCount":279,"commentCount":1,"publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/ruby\/syncem-thread-safe-decorators-ruby\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/ruby-logo.jpg","articleSection":["Ruby"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webcodegeeks.com\/ruby\/syncem-thread-safe-decorators-ruby\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webcodegeeks.com\/ruby\/syncem-thread-safe-decorators-ruby\/","url":"https:\/\/www.webcodegeeks.com\/ruby\/syncem-thread-safe-decorators-ruby\/","name":"SyncEm: Thread-Safe Decorators in Ruby - Web Code Geeks - 2026","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/ruby\/syncem-thread-safe-decorators-ruby\/#primaryimage"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/ruby\/syncem-thread-safe-decorators-ruby\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/ruby-logo.jpg","datePublished":"2019-06-28T09:15:21+00:00","description":"Interested to learn about SyncEm? Check our article explaining how SyncEm, makes Thread-Safe Decorators in Ruby possible with a single decorator.","breadcrumb":{"@id":"https:\/\/www.webcodegeeks.com\/ruby\/syncem-thread-safe-decorators-ruby\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webcodegeeks.com\/ruby\/syncem-thread-safe-decorators-ruby\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/ruby\/syncem-thread-safe-decorators-ruby\/#primaryimage","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/ruby-logo.jpg","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/ruby-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.webcodegeeks.com\/ruby\/syncem-thread-safe-decorators-ruby\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webcodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Ruby","item":"https:\/\/www.webcodegeeks.com\/category\/ruby\/"},{"@type":"ListItem","position":3,"name":"SyncEm: Thread-Safe Decorators in Ruby"}]},{"@type":"WebSite","@id":"https:\/\/www.webcodegeeks.com\/#website","url":"https:\/\/www.webcodegeeks.com\/","name":"Web Code Geeks","description":"Web Developers Resource Center","publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webcodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.webcodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.webcodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webcodegeeks","https:\/\/x.com\/webcodegeeks"]},{"@type":"Person","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/96538e7abaac9f7a3dce9d5d92e1cb33","name":"Yegor Bugayenko","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c3696c78da79ebdd9ffa8e87e8832461b7cd59659483373b34da4ae25dfb573a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c3696c78da79ebdd9ffa8e87e8832461b7cd59659483373b34da4ae25dfb573a?s=96&d=mm&r=g","caption":"Yegor Bugayenko"},"description":"Yegor Bugayenko is an Oracle certified Java architect, CEO of Zerocracy, author of Elegant Objects book series about object-oriented programing, lead architect and founder of Cactoos, Takes, Rultor and Jcabi, and a big fan of test automation.","sameAs":["http:\/\/www.yegor256.com\/","https:\/\/www.facebook.com\/yegor256","https:\/\/www.linkedin.com\/in\/yegor256","https:\/\/x.com\/yegor256"],"url":"https:\/\/www.webcodegeeks.com\/author\/yegor-bugayenko\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/24634","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/users\/6534"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/comments?post=24634"}],"version-history":[{"count":0,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/24634\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media\/4128"}],"wp:attachment":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media?parent=24634"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/categories?post=24634"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/tags?post=24634"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}