Need advice about which tool to choose?Ask the StackShare community!

Lagom Framework

37
68
+ 1
0
Spring

3.9K
4.7K
+ 1
1.1K
Add tool

Lagom Framework vs Spring: What are the differences?

Introduction

This Markdown code provides a comparison between the Lagom Framework and Spring, highlighting key differences between the two technologies.

  1. Architecture: Lagom is built on the reactive principles and follows the CQRS (Command Query Responsibility Segregation) pattern, while Spring is a comprehensive application development framework. This difference in architecture determines the scalability, performance, and fault tolerance of the applications built on each framework.

  2. Ease of Use: Lagom offers a more opinionated approach with consistent project structure and predefined conventions, making it easier to get started and follow best practices. Spring, on the other hand, provides more flexibility and customization options, allowing developers to choose and configure different modules as per their requirements.

  3. Concurrency Model: Lagom incorporates the Reactive Streams API, which supports asynchronous and non-blocking communication between services. Spring, on the other hand, utilizes its own concurrency model and provides various threading models and abstractions for concurrent programming.

  4. Service Discovery: Lagom has built-in support for service discovery using Lightbend's ConductR or Kubernetes, simplifying the management and discovery of microservices. In contrast, Spring requires the use of additional libraries or tools like Eureka or Consul to achieve similar functionality.

  5. Testing Capabilities: Lagom provides a set of testing utilities specifically designed for testing microservices, including service mocks and integration testing support. Spring, being a comprehensive framework, offers a wide range of testing options, including unit testing, integration testing, and performance testing.

  6. Community and Ecosystem: Spring has a large and mature community with extensive documentation, resources, and support. It has a wide ecosystem of libraries and tools that integrate well with the framework, providing developers with a rich set of options. Lagom, being a relatively newer framework, has a smaller community and ecosystem, although it is growing rapidly.

In Summary, Lagom and Spring differ in their architecture, ease of use, concurrency model, service discovery, testing capabilities, and community/ecosystem support.

Advice on Lagom Framework and Spring
Needs advice
on
DjangoDjango
and
SpringSpring

I am a graduate student working as a software engineer in a company. For my personal development, I want to learn web development. I have some experience in Springboot while I was in university. So I want to continue with spring-boot, but I heard about Django. I'm reaching out to the experts here to help me choose a future proof framework. Django or Spring Boot?

Thanks in Advance

See more
Replies (5)
Recommends
on
SpringSpring

Kamrul Hasan, Don't choose dying technologies with small communities. How many startups do you think use Spring and Django? Use Google Trends to compare technologies. Study the StackOverflow developer survey and job websites to see what technologies are wanted. Few teams can afford to train you to get up to their level so be a life-long learner. Embrace the dawn of a new industry and become an expert.

See more
Sulaiman Sanusi
Recommends
on
SpringSpring

I recommend you stick to Java Spring as you already have experience with the technology, i suggest you master this technology and then if Django seam to be very interesting to you, django is a framework you can easily pickup as python is also easy, you have to probably be able to manage the context switching between a static typed language like Java to dynamic language like python

See more
Christoph Becker
Recommends
on
DjangoDjangoSpringSpring

It depends on what you want. Spring is Java-based whereas Django is Python-based. The question rather is Java vs Python. I personally recommend Python as it's shorter and easy to learn. But Java has advantages in really big systems.

See more
Gonzalo Fernández
Recommends

Hi Kamrul,

It really depends on the kind of project and whether you feel more comfortable with Java or Python. Both are excellent frameworks, with a huge community and learning material. I've been working with Spring Boot since I started coding almost and I can assure you it's the perfect combination for Java. The learning curve may be harder that Django, but once you know the basics you're good to go. I can't tell you much about Django but you must now by now that it has a great reputation with Python users. In any case I don't think you can go wrong with any of these two. My advice is, if you are already familiar with the Spring framework, give Spring Boot a try, because you're going to find out that it just makes the whole Spring experience so much easier. Let us know what you chose!

See more
Recommends
on
DjangoDjango

Both are in active development and had huge community support. It really depends on you what you are comfortable with. Both are married to their respective languages. I choose Python over Java because of its simplicity and readability. To develop in java you need to write a lot of code. That's how java is. The best part I love with Django is its synchronization with Databases.

See more
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Lagom Framework
Pros of Spring
    Be the first to leave a pro
    • 230
      Java
    • 157
      Open source
    • 136
      Great community
    • 123
      Very powerful
    • 114
      Enterprise
    • 64
      Lot of great subprojects
    • 60
      Easy setup
    • 44
      Convention , configuration, done
    • 40
      Standard
    • 31
      Love the logic
    • 13
      Good documentation
    • 11
      Dependency injection
    • 11
      Stability
    • 9
      MVC
    • 6
      Easy
    • 3
      Makes the hard stuff fun & the easy stuff automatic
    • 3
      Strong typing
    • 2
      Code maintenance
    • 2
      Best practices
    • 2
      Maven
    • 2
      Great Desgin
    • 2
      Easy Integration with Spring Security
    • 2
      Integrations with most other Java frameworks
    • 1
      Java has more support and more libraries
    • 1
      Supports vast databases
    • 1
      Large ecosystem with seamless integration
    • 1
      OracleDb integration
    • 1
      Live project

    Sign up to add or upvote prosMake informed product decisions

    Cons of Lagom Framework
    Cons of Spring
      Be the first to leave a con
      • 15
        Draws you into its own ecosystem and bloat
      • 3
        Verbose configuration
      • 3
        Poor documentation
      • 3
        Java
      • 2
        Java is more verbose language in compare to python

      Sign up to add or upvote consMake informed product decisions

      What is Lagom Framework?

      an open source framework for building reactive microservice systems in Java or Scala. Lagom builds on Akka and Play, proven technologies that are in production in some of the most demanding applications today. Its integrated development environment allows you to focus on solving business problems instead of wiring services together.

      What is Spring?

      A key element of Spring is infrastructural support at the application level: Spring focuses on the "plumbing" of enterprise applications so that teams can focus on application-level business logic, without unnecessary ties to specific deployment environments.

      Need advice about which tool to choose?Ask the StackShare community!

      What companies use Lagom Framework?
      What companies use Spring?
      See which teams inside your own company are using Lagom Framework or Spring.
      Sign up for StackShare EnterpriseLearn More

      Sign up to get full access to all the companiesMake informed product decisions

      What tools integrate with Lagom Framework?
      What tools integrate with Spring?

      Sign up to get full access to all the tool integrationsMake informed product decisions

      Blog Posts

      What are some alternatives to Lagom Framework and Spring?
      Spring Boot
      Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can "just run". We take an opinionated view of the Spring platform and third-party libraries so you can get started with minimum fuss. Most Spring Boot applications need very little Spring configuration.
      Istio
      Istio is an open platform for providing a uniform way to integrate microservices, manage traffic flow across microservices, enforce policies and aggregate telemetry data. Istio's control plane provides an abstraction layer over the underlying cluster management platform, such as Kubernetes, Mesos, etc.
      Zuul
      It is the front door for all requests from devices and websites to the backend of the Netflix streaming application. As an edge service application, It is built to enable dynamic routing, monitoring, resiliency, and security. Routing is an integral part of a microservice architecture.
      Jersey
      It is open source, production quality, framework for developing RESTful Web Services in Java that provides support for JAX-RS APIs and serves as a JAX-RS (JSR 311 & JSR 339) Reference Implementation. It provides it’s own API that extend the JAX-RS toolkit with additional features and utilities to further simplify RESTful service and client development.
      linkerd
      linkerd is an out-of-process network stack for microservices. It functions as a transparent RPC proxy, handling everything needed to make inter-service RPC safe and sane--including load-balancing, service discovery, instrumentation, and routing.
      See all alternatives