<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Rentify Engineering - Medium]]></title>
        <description><![CDATA[Words and thoughts from the engineering team at Rentify - Medium]]></description>
        <link>https://medium.com/rentify-engineering?source=rss----d9a11afa0e2c---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Rentify Engineering - Medium</title>
            <link>https://medium.com/rentify-engineering?source=rss----d9a11afa0e2c---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 25 Nov 2026 01:51:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/rentify-engineering" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Our (S3) bucket list]]></title>
            <link>https://medium.com/rentify-engineering/our-s3-bucket-list-3ee42e74a5d6?source=rss----d9a11afa0e2c---4</link>
            <guid isPermaLink="false">https://medium.com/p/3ee42e74a5d6</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[lambda]]></category>
            <category><![CDATA[amazon-s3]]></category>
            <dc:creator><![CDATA[Jonny Wheeler]]></dc:creator>
            <pubDate>Tue, 16 May 2017 09:57:52 GMT</pubDate>
            <atom:updated>2017-05-16T09:57:51.657Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*lEKCZtSa3_zNA0AhuKhZDg.png" /></figure><p>As mentioned in our <a href="https://rentify.engineering/learning-to-fish-code-c38a79a4fa08">previous post</a>, once a quarter the engineering team at Rentify focuses a sprint on tying up loose ends, completing odd jobs and working on large infrastructure projects that are essential to the day-to-day running of the business.</p><p>One job that stood out for me was tackling our growing “anything goes” bucket on <a href="https://aws.amazon.com/s3/">Amazon’s S3</a> (we’ve all got one).</p><p>During our early days, the one-bucket-fits-all approach served us well, however as our product has grown there has been a need for finer separation of files. There are technical benefits as well: for example, multiple buckets allow a finer grained control of versioning policies. For sensitive documents such as invoices, S3’s built-in versioning can be extremely useful, however keeping versioned photos from a landlord’s property as they renovate their fireplace is less crucial!</p><p>With the simple aim to split out our existing One Bucket To Rule Them All, the challenge of how to carry out a seamless transition arose, without disrupting our users. Luckily, AWS offers a whole host of tools to assist with the transition.</p><h4>Step 1 — Create a new bucket</h4><p>In order to keep things locked down, I opted to create a new IAM role that had both permissions to list and read from the original bucket, and permissions to list and write to the new one (a bit like a master/slave setup in a database). Signing in to the the <a href="https://aws.amazon.com/cli/">AWS CLI tool</a> with the newly created role, it’s a simple case of running one command:</p><pre>aws s3 sync s3://SOURCE_BUCKET/interesting_documents s3://DESTINATION_BUCKET/newlocation — source-region SOURCE_BUCKET_REGION — region DESTINATION_BUCKET_REGION</pre><p>(This may take a while as it copies all selected documents to the new bucket.)</p><p><strong>Top tip: </strong>You can include — dryrun if you want to see what the command will do without actually moving anything.</p><h4>Step 2 — Keep the buckets in sync</h4><p>Now that our new bucket has all the required files, you might think you’re good to go, but if you switched buckets now, the new bucket would lack any modifications made between the time the sync was performed and the time you pointed your app/uploader to the new bucket (i.e. <em>not</em> a seamless transition, and lots of unhappy users and software engineers).</p><p>In order for the changeover to require zero downtime, it is essential to keep these buckets in sync at all times, which is where <a href="http://docs.aws.amazon.com/lambda/latest/dg/welcome.html">AWS’s Lambda</a> comes to the rescue. Lambda is a simple serverless solution from AWS that allows small stateless functions to be written. As an AWS customer, this means you only get billed for the time the function is actually running, so you’re never charged for a server sitting idle.</p><p>We wrote a simple function which copies a file from one bucket to another, to be triggered whenever a new object is added to our old bucket:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f48dd170f54fa729b2fa0f0e33d0b0a4/href">https://medium.com/media/f48dd170f54fa729b2fa0f0e33d0b0a4/href</a></iframe><p><em>Based on AWS Lambda examples </em><a href="http://docs.aws.amazon.com/lambda/latest/dg/with-s3-example-deployment-pkg.html"><em>http://docs.aws.amazon.com/lambda/latest/dg/with-s3-example-deployment-pkg.html</em></a><em> — full source available at </em><a href="https://github.com/jonathan-wheeler/s3-sync">https://github.com/jonathan-wheeler/s3-sync</a></p><p>Once created, you set the destination bucket as an environment variable and set the trigger as “ObjectCreated”.</p><p>If all is setup correctly, you should start seeing the function being triggered via the monitoring tab, and entries pouring into the CloudWatch logs. Now is a good time to re-run the sync command to ensure any orphaned documents created between the Lambda deployment time and the last sync time are copied across.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7QYEqD8RoC3U6TEw." /></figure><h4>Step 3 — Point to the new bucket</h4><p>Now you can point your application to your new (N*SYNC) bucket, deploy any changes required to point at the new bucket, and you’re all done. Tear down your Lambda function and have a beer or a cup of tea–you deserve it!</p><p><em>Well-laid migration plans your cup of tea? We’re hiring! Drop us an email at </em><a href="/service/mailto:jobs@rentify.com"><em>jobs@rentify.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ee42e74a5d6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/rentify-engineering/our-s3-bucket-list-3ee42e74a5d6">Our (S3) bucket list</a> was originally published in <a href="https://medium.com/rentify-engineering">Rentify Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning to fish (code)]]></title>
            <link>https://medium.com/rentify-engineering/learning-to-fish-code-c38a79a4fa08?source=rss----d9a11afa0e2c---4</link>
            <guid isPermaLink="false">https://medium.com/p/c38a79a4fa08</guid>
            <category><![CDATA[women-in-tech]]></category>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Edwin Wills]]></dc:creator>
            <pubDate>Wed, 15 Mar 2017 14:03:34 GMT</pubDate>
            <atom:updated>2017-03-21T23:49:42.633Z</atom:updated>
            <content:encoded><![CDATA[<p>At Rentify, we’re working hard to rebuild the renting experience from the ground up for both landlords and tenants. We do this by offering revolutionary products, fair prices, and exceptional customer service. We achieve this by thoughtfully applying technology.</p><p>Once per quarter, we host an ‘engineering sprint’. This is an important time for the engineering team to work on infrastructure, upgrade our internal tools and systems, and refactor existing code with the objective of making our lives better in the long run. During this sprint no other parts of the business have any input into what we work on, and we are working solely to make the ‘product’ of software engineering at Rentify better.</p><p>In the past we’ve migrated and upgraded from an old (ancient!) version of Elasticsearch, for our ever-expanding internal search tools, and completed the switch of all our existing web services to AWS.</p><p>For the first engineering week of 2017, we focused on two projects, which we’re going to share more about here in the future; upgrading and moving our production database from a standalone EC2 instance to RDS, and open sourcing some of the tooling we’ve built so that many people in the community can benefit from the work we do.</p><p>As well as engineering focussed activities, we also decided to run our first public “Learn to Code” workshop. Many of our non-technical team at Rentify and friends of the company have been interested in knowing how they can take their first steps in software development, and so — inspired by the excellent work of <a href="https://www.womenwhocode.com/london">Women Who Code</a>, who run monthly meetups for women to learn or develop their programming skills — we welcomed a range of people to our offices for some mentoring and introductory sessions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5YqIUBVZqha5iOwHvpM7KQ.jpeg" /><figcaption>Rentify hosts Women Who Code for one of their monthly events. (Photo: Claire Tran)</figcaption></figure><p>Having taken part in various different programming workshops over the years both as a mentor and a participant, I love a workshop to have a tangible objective (e.g. have a simple interaction on a website to show at the end), rather than pure theory. Knowing the fundamentals of programming languages is a good thing, but a lot of people are looking for a way to <em>implement</em> an idea they already have, and ending up with a simple web application/form/database at the end of a workshop is a very powerful first step and provides a platform for them to develop their skills on their own time.</p><p>Having run through a brief introduction to key concepts (what’s a terminal, why do software engineers insist on esoteric naming schemes), we paired off everyone with an engineer, and set them to work building their first “Hello World”. We used Sinatra as a simple framework, and the end goal was to understand (through application) <a href="http://www.sinatrarb.com/intro.html#Routes">what a route was</a>, build a simple page with a form, and then display the result of a form submission on a separate page. For the more experienced we also looked at how to save the submissions in a database, and then retrieve them for display.</p><p>The response was overwhelmingly positive, with people from completely different areas of the business being given the first stepping stone to building their own ideas (my favourite part was hearing all the ideas that attendees want to build).</p><p>We’ll definitely be hosting future events, and hope to extend our invitation to more folks. If you’d be interesting in attending, just drop me an email on <a href="/service/mailto:edwin@rentify.com">edwin@rentify.com</a>. We’d love to see you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c38a79a4fa08" width="1" height="1" alt=""><hr><p><a href="https://medium.com/rentify-engineering/learning-to-fish-code-c38a79a4fa08">Learning to fish (code)</a> was originally published in <a href="https://medium.com/rentify-engineering">Rentify Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>