Jim Lynch Codes
  • Blog
  • About Jim

Writings about one coder's stories & experiences.

Taking a Quick Look at Loopback and Strongloop for Node.js

2/5/2016

0 Comments

 
Yesterday I attended a meetup event at the "Nokia Fortress" in New Providence, NJ. I have to admit, at the beginning of the day I had no idea what strongloop or loopback even were (I really just went because I was interested in all things node.js, haha). This post is about briefly explaining what these two things are, and then at the end I'll talk about why I can easily see companies using this is real life to save money. 

Loopback

Github repo: ​https://github.com/strongloop/loopback/
Loopback is a an npm package and open-source library that runs on node,js and uses express. It allows you to expose api's to client side applications for CRUD operations (create, remove, update, delete) that allow you to store data (eg. a database). Sure, that's not that special. But the awesome part about loopback is that you can plug in almost any data source and it works fine! This means that your whole application architecture doesn't care whether you're using MongoDB, Cassandra, MySQL, Postgress, RDS, etc. Relational or object-based; it doesn't matter! Wow!

Strongloop

Strongloop site: https://strongloop.com/https://strongloop.com/
Strongloop was a company itself. It was recently bought by IBM, and now refers to this product that you can pay a subscription to use. During the demo, the presenter showed how he used strongloop to create all of the REST api's for modifying and updating records. You could also go in and see them all displayed out nicely by visiting the /explorer page. Strongloop also provides monitoring and performance applications for node.js which can be nice to have since, after all, it's running 24/7 on a server somewhere when it's in production. Strongloop has various levels of "membership" for additional features and support, but there is a free version. 

Why is this a great business decision?

Loopback's database "plugability" means that you can also switch to whatever database or vendor is currently cheapest, fastest, handles load the best, whatever you care about. Forecasting the cost of data storage can be tricky since it depends on how much data you're talking about, the volume of queries coming in, and other factors. But with loopback you don't even need to care about that during development.You can have developers think in terms of javascript objects (or whatever they prefer), and create the application in MongoDB (or whatever they prefer). Then once your user base grows to the point where you have some data and can see how you app is being used, you might find that Mongo is too expensive. But if you developed using loopback you can switch to AWS Redshift, RDS, or some other database that is cheaper. The point is that you won't need to rewrite any code. Loopback just loops all the data back to their store and has a way of mapping that model to the various databases.  

Concerns

Although I do plan to start using loopback and strongloop, here are some concerns I have about the too-good-too-be-true hype surrounding loopback and strongloop:
  • Loopback uses a very (at first) strange looking querying syntax. This and things like setting up relationships can require specific loopback expertise. This is a curse and a blessing. It is yet another "sql" to learn, but it does replace all the other sql's (and it gives developers who do know it a competitive advantage). 
  • Is there any added latency when requests are sent through loopback? Is it in many ways a "middleware" software, and I'm curious if this added step has any impact on performance. 
  • Should I worry about security? Very similar to my worries about loopback in terms of speed, I'm fearful that the added layer could be a security vulnerability that could be exploited.
  • Strongloop is a subscription service, and while it can be nice to have their comfortable tools I'd rather not pay money for a account higher than the free level unless there are premium-only features that are critical to my business.
I do wonder about these things, and if you're a wise loopbacker who knows the truth about these wonders please share the knowledge in the comments below. :)
0 Comments

Your comment will be posted after it is approved.


Leave a Reply.

    ​Author

    Picture
    The posts on this site are written and maintained by Jim Lynch. About Jim...
    Picture
    Follow @JimLynchCodes
    Follow @JimLynchCodes

    Categories

    All
    Actionscript 3
    Angular
    AngularJS
    Automated Testing
    AWS Lambda
    Behavior Driven Development
    Blockchain
    Blogging
    Business Building
    C#
    C / C++
    ClojureScript / Clojure
    Coding
    Community Service
    CS Philosophy
    Css / Scss
    Dev Ops
    Firebase
    Fitness
    Flash
    Front End
    Functional Programming
    Git
    Go Lang
    Haskell
    Illustrations
    Investing
    Java
    Javascript
    Lean
    Life
    Linux
    Logic Pro
    Music
    Node.js
    Planning
    Productivity
    Professionalism
    Python
    React
    Redux / Ngrx
    Refactoring
    Reusable Components
    Rust
    Security
    Serverless
    Shell Scripting
    Swift
    Test Driven Development
    Things
    TypeScript
    Useful Sites
    Useful Tools
    Video
    Website Development
    WebStorm
    Writing

    Archives

    March 2023
    August 2021
    February 2021
    January 2021
    October 2020
    September 2020
    May 2020
    April 2020
    February 2020
    January 2020
    December 2019
    October 2019
    September 2019
    August 2019
    July 2019
    June 2019
    May 2019
    April 2019
    March 2019
    February 2019
    January 2019
    December 2018
    November 2018
    October 2018
    September 2018
    August 2018
    June 2018
    May 2018
    April 2018
    March 2018
    February 2018
    January 2018
    December 2017
    November 2017
    October 2017
    September 2017
    August 2017
    July 2017
    May 2017
    April 2017
    March 2017
    February 2017
    January 2017
    December 2016
    November 2016
    October 2016
    September 2016
    August 2016
    July 2016
    June 2016
    May 2016
    April 2016
    March 2016
    February 2016
    January 2016
    December 2015
    November 2015
    October 2015

    RSS Feed

  • Blog
  • About Jim
JimLynchCodes © 2023