<?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[Stories by Benedikt Deicke on Medium]]></title>
        <description><![CDATA[Stories by Benedikt Deicke on Medium]]></description>
        <link>https://medium.com/@benediktdeicke?source=rss-51fbf4229df7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*KhkPRmyZ-A5UtY_X.png</url>
            <title>Stories by Benedikt Deicke on Medium</title>
            <link>https://medium.com/@benediktdeicke?source=rss-51fbf4229df7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 06:53:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@benediktdeicke/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Don’t call us, we’ll call you: Sending webhooks with Rails]]></title>
            <link>https://medium.com/@benediktdeicke/dont-call-us-we-ll-call-you-sending-webhooks-with-rails-5775241d7eb?source=rss-51fbf4229df7------2</link>
            <guid isPermaLink="false">https://medium.com/p/5775241d7eb</guid>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[rails]]></category>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[webhooks]]></category>
            <dc:creator><![CDATA[Benedikt Deicke]]></dc:creator>
            <pubDate>Fri, 09 Feb 2018 09:07:42 GMT</pubDate>
            <atom:updated>2018-02-09T09:07:42.403Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8A-uMt3f-q-B37bv.jpg" /></figure><p>Integrating with other services is on the roadmap of almost any SaaS application. There’s only so much your application can do itself. Sometimes it’s best to leave tasks up to others who specialize on them.</p><p>Building specialized integrations with other tools is one way to approach this. However, wouldn’t it be nice if your application had a generic way for others to be notified about things that happen on your side so they can work with that information?</p><p>When it comes to passing data around in (near) realtime, <a href="http://www.webhooks.org/">webhooks</a> are the way to go. There is no real standard for them, but most services are working with simple POST requests that send JSON as their request body. Webhooks are triggered for different events and transmit relevant data to other parties.</p><p>In the following, we’ll be talking about how to allow other services to integrate with your application, by allowing them to register webhook endpoints and notifying them when something interesting happens.</p><h3>Registering webhook endpoints</h3><p>In order to send webhooks, you have to know where to send them to. You have to provide your users with a way to set up new webhook endpoints. This can be done via user interface. In it’s simplest form, it would just be a textfield where users can enter a URL. In more advanced scenarios, you might allow them to specify multiple different endpoints and the types of events that should send a webhook to these endpoints.</p><p>To make things easier for your users, you can also decide to allow webhook endpoint registration via your API. This way, other services can just setup the endpoints they need, making things a lot easier for your users. Add authentication via OAuth on top, and it can be as easy as a single click of a button.</p><p>We start off by implementing a Webhook::Endpoint model. Each endpoint needs a target url, a set of events that it cares about, and an account this endpoint belongs to. To make things a little easier for ourselves, we use PostgreSQL’s array columns to store the events as a simple list.</p><pre><strong>class</strong> <strong>CreateWebhookEndpoints</strong> &lt; <strong>ActiveRecord</strong>::<strong>Migration</strong>[<strong>5</strong>.<strong>1</strong>]<br>  <strong>def</strong> change<br>    create_table <strong>:webhook_endpoints</strong> <strong>do</strong> |t|<br>      t.string <strong>:target_url</strong>, <strong>null: false</strong><br>      t.string <strong>:events</strong>, <strong>null: false</strong>, <strong>array: true</strong><br>      t.references <strong>:account</strong>, <strong>foreign_key: true</strong>, <strong>null: false</strong><br>      t.timestamps<br>      t.index <strong>:events</strong><br>    <strong>end</strong><br>  <strong>end</strong><br><strong>end</strong></pre><p>This example uses namespaces to keep things a bit more organized. We put all webhooks related code into a webhook directory. In the database we prefix all webhook related tables with webhook_.</p><pre><em># app/models/webhook/endpoint.rb</em><br><strong>module</strong> <strong>Webhook</strong><br>  <strong>class</strong> <strong>Endpoint</strong> &lt; <strong>ApplicationRecord</strong><br>    <strong>def</strong> <strong>self</strong>.table_name_prefix<br>      <strong>&#39;webhook_&#39;</strong><br>    <strong>end</strong><br><br>    <em># ...</em><br><strong>end</strong></pre><p>To make the events array column work, we have to tell Rails about it by adding an attribute macro to the model.</p><pre>attribute <strong>:events</strong>, <strong>:string</strong>, <strong>array: true</strong>, <strong>default: </strong>[]</pre><p>On the validation side, we only want valid http urls as target url. Luckily Ruby comes with a handy URI regular expression in it’s standard library, ready for us to use. We also add a presence validation for the events, so every endpoint is triggered by at least one event.</p><pre>validates <strong>:target_url</strong>,<br>  <strong>presence: true</strong>,<br>  <strong>format: URI</strong>.regexp(<strong>%w(http https)</strong>)<br><br>validates <strong>:events</strong>,<br>  <strong>presence: true</strong></pre><p>In order to quickly retrieve endpoints for one (or more) events later on, we implement a custom scope. It uses PostgreSQL’s contains operator (@&gt;) to just return the endpoints interested in a particular event.</p><pre><strong>def</strong> <strong>self</strong>.for_event(events)<br>  where(<strong>&#39;events @&gt; ARRAY[?]::varchar[]&#39;</strong>, <strong>Array</strong>(events))<br><strong>end</strong></pre><p>Notice that we’re using Array(events) to convert the methods arguments into an array, or just leave it untouched if it already is one. This allows us to call the scope with one event name, or an array of multiple ones.</p><p>Next, we add some normalization and sanitization logic to the events setter method. This can be done, by simply overwriting the method, doing the necessary changes, and then calling super.</p><pre><strong>def</strong> events=(events)<br>  events = <strong>Array</strong>(events).map { |event| event.to_s.underscore }<br>  <strong>super</strong>(<strong>Webhook</strong>::<strong>Event</strong>::<strong>EVENT_TYPES</strong> &amp; events)<br><strong>end</strong></pre><p>In this case we’re normalizing the events into underscore strings. Afterwards we intersect the resulting array with a predefined array of event names (more on that later), to make sure all the events name are actually valid.</p><p>Finally, we add a method to deliver an event to this endpoint. It’s empty on purpose for now.</p><pre><strong>def</strong> deliver(event)<br><strong>end</strong></pre><p>With the Webhook::Endpoint model in place, we need a controller, the view layer and most likely an API representation for it. There’s nothing special about the implementation of all of this, so we won’t cover it here.</p><h3>Representing events</h3><p>As mentioned before there is no standard on how webhook payloads should look like. In this example we use them to represent events that are triggered within your application. Assuming the application somehow works with a Project model, here’s an example of an event for a newly created project.</p><pre>{<br>  <strong>&quot;event_name&quot;</strong>: <strong>&quot;project_created&quot;</strong>,<br>  <strong>&quot;project&quot;</strong>: {<br>    <strong>&quot;name&quot;</strong>: <strong>&quot;Example Project&quot;</strong>,<br>  }<br>}</pre><p>The webhook payload follows a simple structure. It always has an event_name and a set of embedded models with relevant data. You’re of course free to settle on a different format. Instead of embedding the event name in the payload itself, you might choose to send an X-Event-Name header with your request. Whatever you do, just stick to a pattern for all the webhooks you’re sending and document it. All the developers building integrations with your application will thank you for it.</p><p>Let’s implement a Webhook::Event model to represent a single event. This can be done as “plain old ruby object”. If you want to keep track of the state of every single event, you can store all events in the database as well. For the purpose of this example, we’ll keep it simple.</p><p>The implementation of Webhook::Event is straight-forward. It’s an object with two instance variables. One for the event’s name, and another one for its (optional) payload. To keep track of valid events, we add the EVENT_TYPES constant used earlier. Whenever you add a new event, add it to this list.</p><pre><em># app/models/webhook/event.rb</em><br><strong>module</strong> <strong>Webhook</strong><br>  <strong>class</strong> <strong>Event</strong><br>    <strong>EVENT_TYPES</strong> = <strong>%w(<br>      project_created<br>      project_updated<br>      project_destroyed<br>    )</strong>.freeze<br><br>    <strong>attr_reader</strong> <strong>:event_name</strong>, <strong>:payload</strong><br><br>    <strong>def</strong> initialize(event_name, payload = {})<br>      <strong>@event_name</strong> = event_name<br>      <strong>@payload</strong> = payload<br>    <strong>end</strong><br><br>    <em># ...</em><br><strong>end</strong></pre><p>As we want events to be delivered as JSON in the HTTP request’s body, we have to implement serialization for this event model. This can be as simple as taking a copy of the payload and adding the event_name to it.</p><pre><strong>def</strong> as_json(*args)<br>  <strong>hash</strong> = payload.dup || {}<br>  <strong>hash</strong>[<strong>:event_name</strong>] = event_name<br>  <strong>hash</strong><br><strong>end</strong></pre><p>However, we want to keep our code clean and not come up with the entire payload for every single event. If you’re using <a href="http://github.com/rails/active_model_serializers">ActiveModel::Serializers</a> to handle serialization of your API resources, you can leverage it to properly serialize the payload for you.</p><pre><strong>def</strong> as_json(*args)<br>  <strong>hash</strong> = payload.transform_values <strong>do</strong> |value|<br>    serialize_resource(value).as_json(*args)<br>  <strong>end</strong><br><br>  <strong>hash</strong>[<strong>:event_name</strong>] = event_name<br>  <strong>hash</strong><br><strong>end</strong><br><br><strong>private</strong><br><br><strong>def</strong> serialize_resource(resource)<br>  <strong>ActiveModelSerializers</strong>::<strong>SerializableResource</strong>.new(resource, {})<br><strong>end</strong></pre><p>This way, you can create events and simply pass your model instances as payload.</p><pre><strong>Webhook</strong>::<strong>Event</strong>.new(<strong>:project_created</strong>, { <strong>project: </strong>project })</pre><h3>Triggering events</h3><p>With both Webhook::Endpoint and Webhook::Event in place, it’s time to actually trigger events. To keep things organized and DRY, we use a module to implement this. Whenever you want to trigger events, you just include that module in your model and call one of the helper methods.</p><p>We start off by adding a webhook_scope method. It’s just a stub, that has to be overwritten by each model to return the scope of the webhooks. If you’re getting a bit confused by that, don’t worry. It’ll get clear once you see the module used in an actual example in a few moments.</p><pre><em># app/models/webhook/delivery.rb</em><br><strong>module</strong> <strong>Webhook</strong><br>  <strong>module</strong> <strong>Delivery</strong><br>    <strong>extend</strong> <strong>ActiveSupport</strong>::<strong>Concern</strong><br><br>    <strong>def</strong> webhook_scope<br>      <strong>raise</strong> <strong>NotImplementedError</strong><br>    <strong>end</strong><br><br>    <em># ...</em><br><strong>end</strong></pre><p>Next, we add a method to trigger events. It just takes two arguments. One for the event name, and one for its payload. It then constructs an Webhook::Event object from those and asks every endpoint interested in the event to deliver it.</p><pre><strong>def</strong> deliver_webhook_event(event_name, payload)<br>  event = <strong>Webhook</strong>::<strong>Event</strong>.new(event_name, payload || {})<br>  webhook_scope.webhook_endpoints.for_event(event_name).each <strong>do</strong> |endpoint|<br>    endpoint.deliver(event)<br>  <strong>end</strong><br><strong>end</strong></pre><p>To make things even simpler, we implement a default webhook_payload method, as well as a deliver_webhook method. The latter relies on a naming convention to generate an event for the current model based on an action name.</p><pre><strong>def</strong> webhook_payload<br> {}<br><strong>end</strong><br><br><strong>def</strong> deliver_webhook(action)<br>  event_name = <strong>&quot;#{self</strong>.class.name.underscore<strong>}_#{</strong>action<strong>}&quot;</strong><br>  deliver_webhook_event(event_name, webhook_payload)<br><strong>end</strong></pre><p>Coming back to our projects example from earlier, we can now trigger events like this:</p><pre><em># app/models/project.rb</em><br><strong>class</strong> <strong>Project</strong> &lt; <strong>ApplicationRecord</strong><br>  <strong>include</strong> <strong>Webhook</strong>::<strong>Delivery</strong><br><br>  after_commit <strong>on: :create</strong> <strong>do</strong><br>    deliver_webhook(<strong>:created</strong>)<br>  <strong>end</strong><br><br>  belongs_to <strong>:account</strong><br><br><strong>private</strong><br><br>  <strong>def</strong> webhook_scope<br>    account<br>  <strong>end</strong><br><br>  <strong>def</strong> webhook_payload<br>    { <strong>project: self</strong> }<br>  <strong>end</strong><br><strong>end</strong></pre><p>As most events revolve around creating, updating, and removing models in your database, we can also build a simple module to handle those events automatically.</p><pre><em># app/models/webhook/observable.rb</em><br><strong>module</strong> <strong>Webhook</strong><br>  <strong>module</strong> <strong>Observable</strong><br>    <strong>extend</strong> <strong>ActiveSupport</strong>::<strong>Concern</strong><br>    <strong>include</strong> <strong>Webhook</strong>::<strong>Delivery</strong><br><br>    included <strong>do</strong><br>      after_commit <strong>on: :create</strong> <strong>do</strong><br>        deliver_webhook(<strong>:created</strong>)<br>      <strong>end</strong><br><br>      after_commit <strong>on: :update</strong> <strong>do</strong><br>        deliver_webhook(<strong>:updated</strong>)<br>      <strong>end</strong><br><br>      after_commit <strong>on: :destroy</strong> <strong>do</strong><br>        deliver_webhook(<strong>:destroyed</strong>)<br>      <strong>end</strong><br>    <strong>end</strong><br>  <strong>end</strong><br><strong>end</strong></pre><p>Please notice that the module is using after_commit callbacks. It’s important to only send webhooks after the data is actually present in your database. This is to prevent weird “not found” errors in the occasions where webhooks are delivered faster than your database takes to commit the transactions or it’s part of a larger transaction that fails shortly afterwards.</p><p>Using the Webhook::Observable module, adding webhook events to a model becomes as simple as this:</p><pre><strong>class</strong> <strong>Project</strong> &lt; <strong>ApplicationRecord</strong><br>  <strong>include</strong> <strong>Webhook</strong>::<strong>Observable</strong><br><br>  belongs_to <strong>:account</strong><br><br><strong>private</strong><br><br>  <strong>def</strong> webhook_scope<br>    account<br>  <strong>end</strong><br><br>  <strong>def</strong> webhook_payload<br>    { <strong>project: self</strong> }<br>  <strong>end</strong><br><strong>end</strong></pre><h3>Delivering webhooks</h3><p>To deliver webhooks, I strongly recommend using a background job queue. As delivery depends on 3rd party services, you should expect them to be slow or even unreachable. As your application might send webhooks to multiple endpoints per event, you definitely don’t want your users having to wait until all of them are delivered. Using a queue also allows for retries when delivery fails for some reason.</p><p>In this example, we’re using Sidekiq as background job queue. This is not a requirement, though. ActiveJob with any backend you like will to this job as well.</p><pre><em># app/workers/webhook/delivery_worker.rb</em><br><strong>require</strong> <strong>&#39;net/http&#39;</strong><br><br><strong>module</strong> <strong>Webhook</strong><br>  <strong>class</strong> <strong>DeliveryWorker</strong><br>    <strong>include</strong> <strong>Sidekiq</strong>::<strong>Worker</strong><br><br>    <strong>def</strong> perform(endpoint_id, payload)<br>      <strong>return</strong> <strong>unless</strong> endpoint = <strong>Webhook</strong>::<strong>Endpoint</strong>.find(endpoint_id)<br>      response = request(endpoint.target_url, payload)<br><br>      <strong>case</strong> response.code<br>      <strong>when</strong> <strong>410</strong><br>        endpoint.destroy<br>      <strong>when</strong> <strong>400</strong>..<strong>599</strong><br>        <strong>raise</strong> response.to_s<br>      <strong>end</strong><br>    <strong>end</strong><br><br>    <em># ...</em><br><strong>end</strong></pre><p>The implementation will raise an exception for all HTTP status codes that indicate some sort of error. Sidekiq will catch the exception and just retry the delivery a few moments later. Please know that HTTP status code 410 Gone is an exception. It’s a small idea picked up from <a href="http://zapier.com/">Zapier</a>. Whenever the endpoint returns a 410, we consider it no longer valid and just remove it from the database.</p><p>The actual HTTP request is nothing fancy. As a result, we just use Net::HTTP from Ruby’s standard library.</p><pre><strong>def</strong> request(endpoint, payload)<br>  uri = <strong>URI</strong>.parse(endpoint)<br><br>  request = <strong>Net</strong>::<strong>HTTP</strong>::<strong>Post</strong>.new(uri.request_uri)<br>  request[<strong>&#39;Content-Type&#39;</strong>] = <strong>&#39;application/json&#39;</strong><br>  request.body = payload<br><br>  http = <strong>Net</strong>::<strong>HTTP</strong>.new(uri.host, uri.port)<br>  http.use_ssl = (uri.scheme == <strong>&#39;https&#39;</strong>)<br><br>  http.request(request)<br><strong>end</strong></pre><p>Finally, we add the implementation of Webhook::Endpoint#deliver we skipped earlier. It enqueues a new Webhook::DeliveryWorker for the given event.</p><pre><strong>def</strong> deliver(event)<br>  <strong>Webhook</strong>::<strong>DeliveryWorker</strong>.perform_async(<strong>id</strong>, event.to_json)<br><strong>end</strong></pre><p>It’s important to serialize the event model in the very moment the delivery is triggered. Otherwise the payload might have changed until the delivery takes place, resulting in weird data and confused developers.</p><h3>Taking things one step further</h3><p>While the implementation shown here covers the most important parts to get webhooks implemented in your application, there are a few more things you should consider.</p><h3>Allowing for authenticity checks</h3><p>As webhooks are usually delivered to more or less public endpoints it’s best to add some way that allows the receiving application to ensure the data is actually coming from you. One common way to do this is to add a signature somewhere in the payload. This can either be done in the JSON body or in a custom HTTP header. The signature should be based on the payload itself and a secret only known to the sending and the receiving application.</p><h3>Accidental Denial of Service attacks</h3><p>Based on the details of your application, it might happen that you send <em>a lot</em> of requests to the endpoints. Some of them might not be able to handle the load. With retries in place, the number of requests sent to the endpoint will only increase, making things worse. It’s a good idea to have some sort of rate limiting in place or even temporarily disable an endpoint that is unable to process requests right now.</p><h3>Wrapping up</h3><p>Webhooks are a great way to allow applications to integrate with yours. At their core, they’re simple and easy to understand HTTP requests. With just a little bit of code, they allow your users to use your application in ways that you didn’t think of before.</p><p>You can get the source code of everything explained in this article at <a href="https://gist.github.com/benedikt/fa3488d968385e553884f61676a69f13">GitHub’s Gist</a>. You should be able to use it in your existing applications, with just minor modifications.</p><p><em>This article is an excerpt from </em><a href="https://benediktdeicke.com/saas-guidebook"><strong><em>The SaaS Guidebook</em></strong></a><em>. It’s just one of the topics the book will cover. If you’re interested in building and running solid SaaS applications, please </em><a href="https://benediktdeicke.com/2017/09/sending-webhooks-with-rails/#saas-guidebook"><strong><em>sign up for updates</em></strong></a><em> on the book.</em></p><p><em>Originally published at </em><a href="https://benediktdeicke.com/2017/09/sending-webhooks-with-rails/"><em>benediktdeicke.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5775241d7eb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Just skip it: 9 features your product does not need to launch]]></title>
            <link>https://medium.com/swlh/just-skip-it-9-features-your-product-does-not-need-to-launch-b9f2311e0dfa?source=rss-51fbf4229df7------2</link>
            <guid isPermaLink="false">https://medium.com/p/b9f2311e0dfa</guid>
            <category><![CDATA[product]]></category>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[bootstrapping]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Benedikt Deicke]]></dc:creator>
            <pubDate>Mon, 29 Jan 2018 09:39:50 GMT</pubDate>
            <atom:updated>2018-01-29T17:20:04.731Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hVAtuUpXNVNrONCL.jpg" /></figure><p>Building a SaaS (or any software product, really) takes a lot of time and money. It’s hard to stay focused on the things that actually produce value for your customers. In the following, I’ll show you a few things that you can easily skip until after launching. This way, you’ll launch earlier, and maybe even learn that you don’t need some of the features you thought everyone wants.</p><h3>1. Self-service on-boarding</h3><p>The dream of SaaS is that it’s full self-service at some point. People sign up, give you money, and you never have to talk to them. To achieve this dream, you spend a lot of time building and tweaking your self-service customer on-boarding flow. You create wizards, guided tours and streamline everything.</p><p>However, when you have not launched yet, I urge you to skip it. Instead, manually set up your customer’s accounts for them. Afterwards, invite them to a screen sharing call and walk them through your application.</p><p>Or, for a better effect, let them try to figure it out themselves, while you’re watching. When they get stuck or confused, help them by explaining things. <strong>This way, you learn about the actual problems of your application and any potential mismatch between your assumptions and your customer’s expectations.</strong></p><p>Take notes about the things that don’t explain themselves and improve them. In the end, you’ll get a much better understanding about what you have to (or don’t have to) explain in a walkthrough.</p><h3>2. Activity streams</h3><p>Activity streams are a good way to show your customers what happened while they were away. While they’re a good way to show and document the value generated by your tool, <strong>they rarely are the feature that produces the value for your customer.</strong></p><p>On top of that, there has to be a lot of activity for them to become meaningful. So, when people just signed up, they are not going to see anything useful anyways.</p><p>Instead of implementing activity streams before even launching, remove that feature until your customers request some insights into their account activity.</p><h3>3. Payment Integration</h3><p>Don’t implement a payment integration before you launch. I know, this sounds bit unintuitive, because you’re building this product to make some money.</p><p>However, not implementing a payment integration, does not mean you cannot get paid.</p><p><strong>Why don’t you start by invoicing your customers manually, asking them to wire transfer the money?</strong> You can also use services like PayPal or Gumroad to sell pre-paid subscriptions packages for a couple of months. Those tools are set up within minutes and don’t require you to integrate anything into your application.</p><p>Even if you’re expecting a huge amount of new customers at launch, you don’t need automated billing right away. You have until the end of your trial period to get payments implemented.</p><h3>4. Permissions / User Roles</h3><p>A fine grained roles and permissions systems is sometimes praised as a great feature of your application.</p><p>In my opinion, it makes things more complicated for both you and your users. Your application only needs one or two different roles. Chances are good that it doesn’t need them at all.</p><p>For your launch, only allow one user per customer. People can easily share their login credentials should multiple people need to work with your application. Don’t worry too much about someone in your customer’s team screwing up the settings or accidentally deleting something. <strong>A complex permissions system is not the fix for trust and competence issues.</strong></p><h3>5. Administration Interface</h3><p>It’s tempting to implement a secret administration interface that gives you convenient access to your customer’s data. In my experience, you don’t really need it to get started, though.</p><p>For one, you don’t have a lot of data and customers to look at in the first place. For another, you can just peek into the database, or ask your developer to run a quick query.</p><p><strong>Over time, you’ll recognize what bits of information you actually need, and which tasks you have to execute often.</strong> As soon as it takes your developer a substantial amount of time to do these things for you, it makes sense to implement a dedicated administration interface for those things.</p><h3>6. Advanced Technology / Architecture / Infrastructure</h3><p>When starting out, you want to use the latest and greatest piece of technology around. It’s nice and shiny, and all the cool kids are using it right now.</p><p>However, you don’t need it to solve your customer’s actual problems. A fancy, one-page, real-time, super fast JavaScript application is pretty cool, but it’ll take a lot longer to develop. A simple form with a bit of code in the back-end will do the job just as good.</p><p>Just because some piece of technology is the best thing for a large, successful startup with lots of customers and engineers, doesn’t mean it’s the right thing for your application. Start with something simple, and build up from there. Build more advanced stuff when you actually need it. <strong>You cannot anticipate the problems you’ll run into eventually, so don’t try to anticipate them by using an advanced and complex setup.</strong></p><p>When it comes to infrastructure (servers and stuff), keep things simple as well. Don’t expect huge growth in the early days that would warrant a super scalable and high performance infrastructure setup. It’s not worth the time and money unless you are absolutely certain you’ll need it.</p><h3>7. Settings and customizations</h3><p>For the initial version of your product, implement the bare minimum of features you need to solve the customer’s problem. Try to optimize for just one simple use case, and don’t any customizing.</p><p>For one, this will make the application easier to use, for another it’ll save you a lot of time to build it. <strong>Pick some reasonable defaults and stick with them until enough people request more options and settings to tweak.</strong></p><p>This includes things like: The number of different types of things (Field types, modes, …), custom themes and branding, available languages, sorting, filters, pagination, different views on the same data, and a whole lot more.</p><p>A good example for this is is <a href="http://tinyreminder.com/">Tiny Reminder</a>. In the first sketches of the product, there were several types of form fields that people could use collect data from their clients. In the process of cutting down unnecessary features, <a href="http://twitter.com/uibreakfast">Jane</a> removed all but four simple ones (Short Text, Long Text, Tasks, and Files). Up to now, nobody missed the ones she decided to drop.</p><h3>8. Metrics</h3><p>Collecting data is important to understand how your customers use your application. However, the metrics are meaningless until you collected a lot of data points.</p><p><strong>Don’t attempt to measure and track every single action your customers might take in your application. Skip that part until after your launch.</strong> You can get a pretty good first idea about your customer’s usage patterns just by looking at the data in your database.</p><p>Once this data doesn’t answer all your questions, slowly start collecting data points for different things. As always, keep it simple and to a bare minimum. Having an overwhelming amount of data only makes it harder to draw any conclusions from it.</p><h3>9. Customer support tool / knowledge base</h3><p>Customer support is one of the core features your application should offer. It’s important to keep your customers happy. They will run into problems and there should be an easy way for them to get help.</p><p>However, <strong>a simple support email address is more than enough to get started.</strong> You don’t need a dedicated customer support tool. Once you get too many support requests to be able to handle them via email, you can integrate a proper tool.</p><p>This also is true for the knowledge base. It’s a super useful tool to reduce the number of support requests you get. Don’t bother building it before your launch. Instead, learn from the common issues your customers have and write the knowledge base content based on that.</p><h3>Bonus: Don’t build software at all</h3><p>Did you ever consider that you might not even need to build a software product? Chances are, your customer’s problems can be fixed by offering a service. <strong>Start by doing things manually and learn about your customer’s actual problems and requirements.</strong></p><p>This gets you into learning mode quickly, and you’ll save a lot of time and money that would otherwise go into building a software product that doesn’t fit your customers’ needs.</p><p>Brian Casel’s <a href="http://audienceops.com/">Audience Ops</a> is a great example of this. Instead of starting with software, he started offering a service. Only now that he knows what tools would actually be useful, he’s building a <a href="http://opscalendar.com/">software product</a>.</p><h3>Your mileage may vary…</h3><p>As always, your mileage may vary. Depending on your actual product you cannot go without some of these features. Be careful about the features you add to your application early on. While most of the things listed above are useful, it’s probably too early to spend time on them.</p><p><em>Originally published at </em><a href="https://benediktdeicke.com/2017/04/features-your-product-does-not-need-to-launch/"><em>benediktdeicke.com</em></a><em>.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6gfnVvkMRFtjVsWF7vkClA.png" /></figure><h4>This story is published in <a href="https://medium.com/swlh">The Startup</a>, Medium’s largest entrepreneurship publication followed by 290,182+ people.</h4><h4>Subscribe to receive <a href="http://growthsupply.com/the-startup-newsletter/">our top stories here</a>.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6gfnVvkMRFtjVsWF7vkClA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9f2311e0dfa" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/just-skip-it-9-features-your-product-does-not-need-to-launch-b9f2311e0dfa">Just skip it: 9 features your product does not need to launch</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Launching a product, in just 3652 days]]></title>
            <link>https://medium.com/swlh/launching-a-product-in-just-3652-days-4d4e74e2dcd5?source=rss-51fbf4229df7------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d4e74e2dcd5</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Benedikt Deicke]]></dc:creator>
            <pubDate>Fri, 11 Sep 2015 15:01:37 GMT</pubDate>
            <atom:updated>2015-09-16T10:18:17.071Z</atom:updated>
            <content:encoded><![CDATA[<h2>Launching a product,</h2><h2>in just 3652 days</h2><p>A story about how I learned a lot of things the hard way…</p><p>A few weeks ago, I launched <a href="http://stagecms.com/">Stage</a>, a content management system, designed for band websites. At launch it was already making 307€ in monthly recurring revenue and hosting the websites of five bands, including those of internationally known bands like <a href="http://nightwish.com/">Nightwish</a>, <a href="http://epica.nl/">Epica</a>, and <a href="http://sonataarctica.info/">Sonata Arctica</a>.</p><p>This is a pretty huge deal for me personally. I love building software products, but usually fail to launch them. My list of unfinished side projects is long, and I’ve got my own little collection of domain names that I registered, but never really used.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Y-xvXLgYEy61iyclElc_w.png" /><figcaption>The website of Stage</figcaption></figure><p>Looking back, the history of Stage started a little over ten years ago. Back then, I was just out of high school and only had few of years experience with programming and building websites. It was also the time when I started listening to metal music and growing my hair. Nightwish was one of my favorite bands at the time, so one day I wrote an e-mail to their webmasters and offered my help. To my surprise, I actually got a reply and a short while later started building a CMS for their band website. The website launched on April 1st, 2006.</p><p>I used the CMS for one or two other websites, but it was a pain on so many levels. I had no idea what I was doing. I haven’t had heard about “version control systems”, or “tests”, or “object oriented design” so it quickly became an unmaintainable mess.</p><p>Meanwhile, I started studying computer science and started working as a freelance developer on the side. Eventually, I learned Ruby and Ruby on Rails, which is now my language and framework of choice. Every now and then, I’d start building a new side project. Sometimes alone, sometimes with friends: A location based database of metal shows of your favorite bands in your area; A website to find new people nearby for leisure time activities; A website with online menus (and reviews) for your universities canteen; A service that analyzed tweets to get the weather for a given location (Yeah, that was more of a fun project); An app to manage your recipes and grocery lists on a tablet mounted in your kitchen (This was even before the iPad existed… We thought about hacking interactive photo frames for this); A web application to discover the location of your band/movie/product’s fans; as well as several others, including the ones I forgot about…</p><p>Every single time I was excited. “This is awesome! This will be the next big thing!”, I told myself. As you can probably guess by now… none of them made it to anything substantial. <strong>I’d work on them for a few weeks, sometimes even months, but eventually I’d lose motivation and never get back to it.</strong></p><p>Over the years, alongside my studies and work, I also made several attempts to rebuild the CMS. I had learned a lot over the years, and I knew I could do better.</p><p>The first time I started rewriting it from scratch I started by designing a beautiful user interface. I’d implement a sophisticated authentication and authorization system that would allow different roles and permissions. The new system also had a very useful activity feed, but the thing was… you couldn’t manage your website’s content. <strong>I got carried away by superfluous features</strong> and lost motivation before even getting to the core feature.</p><p>The next time I started from scratch, focusing on the core features first. I started to implement all the amazing features I had in mind for the content managing part of the system. The plan was to have all the features of the old version in there, as well as several new ones. I had about two months so we could relaunch the Nightwish website using the new system. There was a lot to do, so I started working on several features in parallel. Pushing forward on all of them, but<strong> never finishing just one</strong>. As a result, I couldn’t hold the deadline. We had to use the old CMS one more time, I lost motivation and abandoned the rewrite project.</p><p>Meanwhile, I finished college and started working in my first job. I knew that if I ever wanted to successfully build my own product, I had to learn about VC, investors and funding. So getting a job in a startup was the only logical choice. I was working as a developer and never was involved with pitching the product to investors. Nonetheless, I tried to watch, listen and learn about the process. I experienced the struggles startups encounter when they constantly need outside investment to survive.</p><p>I was still working on side-projects from time to time, but like before, they never really got anywhere. I even gave the CMS another try, but having a full-time job at an early stage startup didn’t leave much time to actually work on it. I’d get to it every few weeks and spend a weekend updating dependencies so everything was up-to-date. More often than not, things would break and I’d spend the rest of the weekend with fixing stuff. <strong>It became pretty clear that my approach to building products had a flaw.</strong> At the same time, I started to realize that outside funding wasn’t the only way to build a business. Watching companies like 37signals, GitHub and Travis CI bootstrap from small teams into successful businesses was motivating.</p><p>In 2012 a <a href="http://www.it-engelhardt.de/">friend</a> recommended <a href="http://www.startupbook.net/">Rob Walling’s “Start Small, Stay Small: A Developer’s Guide to Launching a Startup”</a> to me. To say it changed my life is probably an exaggeration, but it was an eye-opener nonetheless. It definitely put things into a new perspective. I learned about “Micropreneurship” and that starting and staying small might actually be a good thing. <strong>A successful startup doesn’t have to be “the next big thing”</strong> and sell to some large company for an incredibly huge amount. It taught me about the importance of finding a niche, why it’s better to sell to businesses instead of consumers, why marketing is the most important thing, and much, much more.</p><p>A few months later, I quit my job and started working as a freelance software engineer. I had several reasons for it, but one was definitely to be able to carve out more time to work on Stage. This time, I approached things differently.</p><p>I once again got rid of all the code I had written before, but didn’t start programming again. Instead, I started writing copy for a landing page and put it online. I signed up for Google AdWords and spent about 100€ to send traffic to this page. It took a while, but about 50 people actually signed up for the launch notification mailing list I had set up. <strong>While I didn’t really validate my idea this way, it was a huge boost in motivation.</strong> Before actually getting back into building the product, I reached out to a smaller band, pitching them my product and actually naming a price. They agreed to start paying as soon as the product is ready and they’re making some money by selling records and merchandize. To me, this was enough to have a reason to start writing code. I started implementing the product, so it would fit the needs of this <a href="http://ultimate-music-covers.com/">one, small, single-page band website</a> (the “Newcomer” plan).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rCzyKhGtU6byhUlzIP1ehA.png" /><figcaption>Ultimate Music Covers was the first website on Stage</figcaption></figure><p>I managed to set aside one day per week to focus on building the CMS. It took about 4 months, but in early 2014 it was up and running, hosting this one small band website. <strong>Holy shit, I actually managed to ship something!</strong></p><p>It still didn’t earn any money, and it still wasn’t launched to the public — but it was online and had users other than myself. Around the same time, I got lucky and started talking to <a href="http://sonataarctica.info/">two</a> <a href="http://epica.nl/">other</a> bands about redoing their band websites.</p><p>Both were significantly larger and definitely would need a few more features (the “Professional” plan). I managed to get them both to commit to paying for the new system.</p><p>So I started implementing the missing features, always having those to websites in mind. I’d build everything they’d need, but nothing else. Again, a few months later, both websites went live, using Stage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wN1eOsS9-jAfd8S_Yna9OQ.png" /><figcaption>The official website of Epica</figcaption></figure><p>I had three bands using the CMS for their band websites. All of them committed to pay for it on a recurring basis. So in August, I integrated payments into the system and asked them to start paying. This was one of the scariest things in the whole journey.</p><p>Asking those customers to enter their credit card info and start paying. Boy was I relieved when they did so, and everything worked! <strong>I actually started earning money! With my own product!</strong> You could see me smiling for the rest of the day…</p><p>I probably could have launched by then, but there was one thing I still wanted to do get done: Get the <a href="http://nightwish.com/">Nightwish</a> website on <a href="http://stagecms.com/">Stage</a>. They’d still need a few more features (i.e. Internationalization) and it would at least double the traffic the system would have to handle. Once again, I started by talking to the band, trying to get them to commit to paying for the new CMS and only after they did, started working on the new features (the “Rockstar” plan). The website launched in March and they started paying just a few weeks after.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*knOpX1Ho19XOB8VkTKkqBQ.png" /><figcaption>The official website of Nightwish</figcaption></figure><p>Fast forward to today: I launched Stage to the public. I’m still embarrassed, because there a lot of things missing and it has some rough edges here and there. I could have waited with the launch until I polished everything, but as you probably know, there’s always something else coming up. So instead, I took Reid Hoffman’s famous quote (“If you are not embarrassed by the first version of your product, you’ve launched too late.”) by heart and here it is!</p><p>As you can see, I learned a lot of things about building products the hard way. <strong>In hindsight it’s ridiculous how I could work on this for almost ten years.</strong> Especially, since there is no proof that this will eventually lead to something. It’s still far from being a successful product, and <em>the path ahead is definitely a tough one</em>.</p><p>To sum this up, here are a few things I learned over the years:</p><ol><li><strong>Start small</strong>, you can always build up from there. Just take one small step after the other.</li><li><strong>Focus on the core of your product.</strong> Don’t get distracted by fluffy details around the core.</li><li><strong>Launch a landing page</strong> that describes your product and has a way for people to sign up for a mailing list. It helps a lot with motivation to see a sign-up notification from time to time.</li><li><strong>Talk to people.</strong> Talk to your potential customers and people around you.</li><li><strong>Marketing is important.</strong> It doesn’t help to build a cool product if people don’t know about it.</li><li><strong>Don’t be afraid of sales.</strong> Your product is solving a problem, it’s only fair that your customers pay money for it.</li><li><strong>Be persistent.</strong> I had several chances to just give up, but I didn’t. There are rough times, but you can push through them.</li><li><strong>Stay focused.</strong> I stopped working on new side-projects, just focusing on this one product. This helped me make actual progress.</li></ol><p><strong><em>Did you enjoy this story? </em></strong><a href="https://www.getdrip.com/forms/1016006/submissions/new"><strong><em>Join my newsletter</em></strong></a><strong><em> or </em></strong><a href="https://twitter.com/benediktdeicke"><strong><em>follow me on Twitter</em></strong></a><strong><em>!</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WJ6pLzJD9qnHRthas2vL-Q.jpeg" /></figure><p><em>Published in </em><strong>Startups, Wanderlust, and Life Hacking</strong></p><figure><a href="http://supply.us9.list-manage.com/subscribe?u=310af6eb2240d299c7032ef6c&amp;id=d28d8861ad"><img alt="" src="https://cdn-images-1.medium.com/max/800/1*fSUxWFf6_qlAfAObKJuEAA.png" /></a></figure><figure><a href="https://blog.growth.supply/"><img alt="" src="https://cdn-images-1.medium.com/max/800/1*Me4fgEZDDb-d8j41O5oKaQ.png" /></a></figure><figure><a href="https://twitter.com/swlh_"><img alt="" src="https://cdn-images-1.medium.com/max/800/1*_DMWEyOz7IhTGGNb5tzA0g.png" /></a></figure><p>-</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d4e74e2dcd5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/launching-a-product-in-just-3652-days-4d4e74e2dcd5">Launching a product, in just 3652 days</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>